我一直关注 SSH Git,而无需每次都输入密码
但现在我仍然每次都要输入密码。
[root@web2 .ssh]# pwd
/home/git/.ssh
[root@web2 .ssh]# /etc/init.d/sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
------------
caojinhuamatoMacBook-Pro:.ssh caojinhua$ ssh -p 2332 git@xx.xx.xx.xxx
The authenticity of host '[xx.xx.xx.xxx]:2332 ([xx.xx.xx.xxx]:2332)' can't be established.
RSA key fingerprint is 9b:e6:97:b1:a7:22:bd:b3:20:57:f3:0b:01:4e:b7:eb.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[xx.xx.xx.xxx]:2332' (RSA) to the list of known hosts.
git@xx.xx.xx.xxx's password:
Last login: Mon Jun 27 11:00:16 2011 from 121.x8.23x.1x3
[git@web2 ~]$