首页 > 其他 > 详细

secureCRT连接服务器报错:Unable to authenticate

时间:2018-11-15 13:13:49      阅读:4574      评论:0      收藏:0      [点我收藏+]

用secureCRT连接远程服务器时报错:

1 The client has disconnected from the server.Reason:
2 Unable to authenticate using any of the configured authentication methods.

把key粘贴到其他用户是可以登陆的,说明本身key不存在问题,但是一直报错用户名或者key错误

登陆服务器查看auth.log

1 cat auth.log
2 Nov 15 11:20:24 hp06 sshd[31533]: Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys
3 Nov 15 11:20:24 hp06 sshd[31533]: Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys

解决办法:chmod 600  /home/user/.ssh/authorized_keys

secureCRT连接服务器报错:Unable to authenticate

原文:https://www.cnblogs.com/yangxiaochu/p/9962547.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!