Xshell 4 连接 Ubuntu/Kali 报错 "找不到匹配的key exchange算法"
cat >> /etc/ssh/sshd_config <<EOF
KexAlgorithms +diffie-hellman-group-exchange-sha256,diffie-hellman-group1-sha1
EOF
sudo systemctl restart ssh
# SecureCRT低版本连接高版本SSH服务器
cat >> /etc/ssh/sshd_config <<EOF
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
EOF
sudo systemctl restart ssh
The server supports these methods: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
WARNING: No any other purpose,keeping reminded! So sorry to offended,if necessary, contact me and I do change what I had done to protect your privileges!