配置无密码的ssh登录时仍然需要输入密码

June 9, 2011 by
Filed under: linux 

配置了无密码的ssh后,登录服务器时仍然需要密码。

出于安全的考虑,~/.ssh 和~/.ssh/authorized_keys必须只有所有者有权限,其他人没有任何权限,才可以使用无密码ssh登录。 可以尝试如登录服务器上,运行如下命令来解决:

chmod 700 ~/.ssh

chmod 600 ~/.ssh/*

Digg This
Reddit This
Stumble Now!
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Comments

Comments are closed.