接上一章,关于Linux下免密登陆失败,这里找了Stackoverflow上关于这个问题的讨论:
Adding public key to ~/.ssh/authorized_keys does not log me in automatically
同样的,检查目录和文件权限,确保.ssh目录权限为700,authorized_keys文件权限为600
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
问题链接:
Adding public key to ~/.ssh/authorized_keys does not log me in automatically