首先确保ssh-keygen产生的id_rsa,id_rsa.pub都已正确放在~/.ssh目录下,然后输入:
$ssh-add
输入你的ssh密码,屏幕显示:
Identity added: /home/user/.ssh/id_rsa (/home/user/.ssh/id_rsa)
再次尝试连接就OK了。
首先确保ssh-keygen产生的id_rsa,id_rsa.pub都已正确放在~/.ssh目录下,然后输入:
$ssh-add
输入你的ssh密码,屏幕显示:
Identity added: /home/user/.ssh/id_rsa (/home/user/.ssh/id_rsa)
再次尝试连接就OK了。