服务器发送了一个意外的数据包

vim /etc/ssh/sshd_config  

在最后一行添加:KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1

重新加载文件  systemctl reload sshd  问题即解决。

原文地址:https://www.cnblogs.com/MUQINGFENG123/p/13563887.html