xshell連接時顯示“服務器發送了一個意外的數據包。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 restart ssh
問題解決。