5fcd8a8985dea2169.jpg_fo742.jpg
用xshell5 ssh连接ubuntu 20.04 lts报错

received:3,expected:20

解决方法:
/etc/ssh/sshd_config最后增加以下一行

KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1

重启sshd服务或者重载服务配置文件

systemctl reload sshd

systemctl restart sshd

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code