目标服务器:麒麟v10
连接软件:xshell5
问题:无法连接,报错

编辑sshd_config文件,KexAlgorithms参数(一般在最后)添加为下图内容,如已有内容,逗号分隔添加到尾部即可,最后重启sshd

- [root@localhost ~]# vim /etc/ssh/sshd_config
- [root@localhost ~]# systemctl restart sshd
-
-
- KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1
-
客户端的算法与服务器侧的算法不匹配导致