xshell連接服務器的時候報了如下的錯
新版的sshd可能與xshell存在兼容性問題
在/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 或 systemctl restart sshd
就可以連接上服務器了