28
向〜/ .ssh / authorized_keys添加公钥不会自动登录
我将公共SSH密钥添加到了authenticated_keys文件中。 ssh localhost应该在不要求密码的情况下登录我。 我这样做了,然后尝试输入ssh localhost,但仍然要求我输入密码。要使其正常工作,还需要进行其他设置吗? 我已按照说明更改权限: 如果我这样做,结果如下ssh -v localhost。 debug1: Reading configuration data /home/john/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to localhost [127.0.0.1] port 22. debug1: Connection established. debug1: identity file /home/john/.ssh/identity type 1 debug1: identity file /home/john/.ssh/id_rsa type -1 debug1: identity file /home/john/.ssh/id_dsa …