ssh-keygen后,仍提示需要密码

原文作者: 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.重连解决。 
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值