xshell连接服务器失败

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

就可以连接上服务器了

posted @ 2020-12-09 18:09  士大夫给力  阅读(727)  评论(0编辑  收藏  举报