执行ssh操作连接服务器报这个错,找了一会没找到原因,后来才发现是密码不正确,密码写对就好了。
超过百分之50以上是密码的原因。
如果密码确定对着,则检查下PasswordAuthentication 的值是不是yes,如果不是则改为yes,重启sshd即可OK
/etc/ssh/sshd_config
PasswordAuthentication yes
systemctl restart sshd.service
ssh连接其它报错解决:
执行ssh操作连接服务器报这个错,找了一会没找到原因,后来才发现是密码不正确,密码写对就好了。
超过百分之50以上是密码的原因。
如果密码确定对着,则检查下PasswordAuthentication 的值是不是yes,如果不是则改为yes,重启sshd即可OK
/etc/ssh/sshd_config
PasswordAuthentication yes
systemctl restart sshd.service
ssh连接其它报错解决: