用ssh方式git clone ssh 密码,能不每次都输密码吗

--一步,二步,三步,N步,二行脚印
张映 发表于
分类目录:
标签:, , , , , ,
tortoisegit的安装,以及本地服务端的安装在这儿就不说了,下载下来完装就完事了。不是本文的重点。
1,http的方式连接
规则是:http://用户名:密码@giturl
http clone 成功
2,ssh的方式连接
1,利用tortoisegit的puttygen生成,pub key和pri key
2,登录gitlab后台,将pub key保存到ssh key中
3,本地clone,push,fetch时,引入pri key就行了。
如果,你确定成功完成,还是不能ssh的方法,来clone,push,fetch的话,检查以一下内容:
1,关闭selinux
[root@localhost ~]# cat /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
enforcing - SELinux security policy is enforced.
permissive - SELinux prints warnings instead of enforcing.
disabled - No SELinux policy is loaded.
SELINUX=disabled
//把这个disabled掉
# SELINUXTYPE= can take one of these two values:
targeted - Targeted processes are protected,
mls - Multi Level Security protection.
SELINUXTYPE=targeted
2,修改sshd_config
[root@localhost ~]# vim /etc/ssh/sshd_config
//将下面三行,注释拿掉
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile
.ssh/authorized_keys
ssh具体怎么操作:请参加群,群共享里面有ssh连接方式设置的详细过程。
转载请注明作者:海底苍鹰地址:用ssh方式git clone,能不每次都输密码吗_百度知道
用ssh方式git clone,能不每次都输密码吗
提问者采纳
啊服务器放电脑公钥实现免密码登录用每输入密码解决您问题请采纳未解决请继续追问
其他类似问题
为您推荐:
ssh的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 git clone ssh port 的文章

 

随机推荐