ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password]
ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password]
摘要
本文解决SSH连接时遇到的常见错误,包括密码验证失败和密钥交换算法不匹配问题。提供了检査密码、配置文件参数和重启服务的方法。
正文
执行ssh操作连接服务器报这个错,找了一会没找到原因,后来才发现是密码不正确,密码写对就好了。
超过百分之50以上是密码的原因。
如果密码确定对着,则检查下PasswordAuthentication 的值是不是yes,如果不是则改为yes,重启sshd即可OK
如果root用户登录,则检查下PermitRootLogin 的值是不是yes,如果不是则改为yes,重启sshd即可OK
vim /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthen
订阅专栏 解锁全文
1万+

被折叠的 条评论
为什么被折叠?



