分享

ssh

 simplelam 2015-01-19
     原文作者:http://6month./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.重连解决。 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多