我跟隨 SSH Git without having to type in my password every time爲什麼在將密鑰添加到authorize_key後,每次ssh到服務器時都要輸入密碼?
但現在我仍然必須每次輸入密碼。
[[email protected] .ssh]# pwd
/home/git/.ssh
[[email protected] .ssh]# /etc/init.d/sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
------------
caojinhuamatoMacBook-Pro:.ssh caojinhua$ ssh -p 2332 [email protected]
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.
[email protected]'s password:
Last login: Mon Jun 27 11:00:16 2011 from 121.x8.23x.1x3
[[email protected] ~]$
你把你的公鑰ssh密鑰放在了authorized_keys文件中嗎? – jeremiah