首页 > 系统相关 >xshell连接服务器报错:服务器发送了一个意外的数据包。received:3,expected:20的解决方法

xshell连接服务器报错:服务器发送了一个意外的数据包。received:3,expected:20的解决方法

时间:2022-10-26 11:46:59浏览次数:57  
标签:sha2 sshd ecdh 报错 xshell 服务器发送 数据包

原因

网上查资料,猜测可能是sshd与xshell存在兼容性问题。

解决方法

在/etc/ssh/sshd_config最后增加以下一行:

KexAlgorithms [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1

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

systemctl reload sshd
或
systemctl restart sshd

标签:sha2,sshd,ecdh,报错,xshell,服务器发送,数据包
From: https://www.cnblogs.com/liuhanxu/p/16827725.html

相关文章