执行ssh操作连接服务器报这个错,找了一会没找到原因,后来才发现是密码不正确,密码写对就好了。

超过百分之50以上是密码的原因。

如果密码确定对着,则检查下PasswordAuthentication 的值是不是yes,如果不是则改为yes,重启sshd即可OK

/etc/ssh/sshd_config

PasswordAuthentication yes


systemctl restart sshd.service

ssh连接其它报错解决:

ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1], server offered: [diffie-hellman-g

酌贪泉而觉爽,处涸辙以犹欢。

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐