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

用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

猜你喜欢

转载自www.cnblogs.com/yangxiaochu/p/9962547.html
今日推荐