云服务器的连接,客户端出现“服务器发送了一个意外的数据包。received: 3,expected: 20 的解决方案
- 编辑
/etc/ssh/sshd_config
文件 并添加四行代码
ClientAliveInterval 60
ClientAliveCountMax 3
PermitRootLogin yes
KexAlgorithms [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1
- 重启sshd
systemctl reload sshd
标签:sha2,received,20,ecdh,expected,服务器发送,数据包
From: https://www.cnblogs.com/wuxiaoshi/p/17544892.html