原文作者:
http://6month.itpub.net/post/37672/468711对此表示感激不尽!!!!!!!!!!!!!!!!!
ssh-keygen后仍提示需要密码。
1.查看debug信息:ssh -v root@123.22.22.22
OpenSSH_5.8p1, OpenSSL 0.9.8r 8 Feb 2011
......
......
debug1: Authentications that can continue: publickey,password,keyboard-interacti
ve
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/thinkpad/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interacti
ve
debug1: Trying private key: /home/thinkpad/.ssh/id_dsa
debug1: Trying private key: /home/thinkpad/.ssh/id_ecdsa
debug1: Next authentication method: keyboard-interactive
Password:
发现使用rsa public key没了下文。
2.查看要连接的机子的secure log.
vi /var/log/secure
...
...
Authentication refused: bad ownership or modes for directory /root
查看root权限居然为 777,而正常的应该为755,遂:
chmod 755 root
3.重连解决。
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。