标签:存在 远程服务器 user rsh home pre code nec fuse
用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
标签:存在 远程服务器 user rsh home pre code nec fuse
原文地址:https://www.cnblogs.com/yangxiaochu/p/9962547.html