打开 vi /etc/ssh/sshd_config 文件,把下面的代码复制到最后一行
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1
然后重启ssh
service sshd restart
打开 vi /etc/ssh/sshd_config 文件,把下面的代码复制到最后一行
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1
然后重启ssh
service sshd restart