打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
ssh
     原文作者: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.重连解决。 
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
disconnected no supported authentication methods available(server sent: publickey,keyboard interae)
scp速度加快
于ssh -T git@github.com连接GitHub失败,以及Permission denied (publickey)问题 2017年09月27日 19:02:09
Github 访问时出现Permission denied (public key)
Linux系统下的ssh使用(依据个人经验总结)
H3C SSH配置示例 2010-08-27 12:39 配置Router作为SSH服务器 1] 生成RS
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服