Title SecureCRT login ubuntu20.04 prompt “key exchange failed” error
When using ubuntu2004, an error will be reported when using the old version of SecureCRT to connect via SSH, as follows:
Key exchange failed.
No compatible key exchange method. The server supports these methods: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256
To solve this problem, the solution is as follows:
1. Modify ssh_config
Find the following two lines in this file and remove the # in front of them
vim /etc/ssh/ssh_config
2. modify sshd_config
- add the following contents to this file
vim /etc/ssh/sshd_config
KexAlgorithms [email protected],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
3. Restart sshd service
systemctl restart sshd
Read More:
- [Solved] SSH Failed to Login Ubuntu Error: Socket error Event: 32 Error: 10053. Connection closing…Socket close.
- [Solved] Linux ECDSA key Error: Host key verification failed
- The resolution of Ubuntu 16.04 screen can’t be modified and the solution of circulating login
- VScode Error: extension failed XHR Failed (Ubuntu Virtual Machine)
- [Solved] Login with Ubuntu graphical interface, error sorry, that didn’t work.please try again
- [Solved] Ubuntu 20.04.3 Fail to Start sshd Error: Failed to start OpenBSD Secure Shell server
- How to Solve Ubuntu “Failed to fetch” Error
- [SSH error] ssh_exchange_identification: read: Connection reset by peer
- [Solved] Linux SSH Login Terminal Error: shell request failed on channel 0
- [Solved] Ubuntu Compile Rust Program Error: failed to run custom build command for openssl-sys v0.9.39
- [Solved] Linux error: SSH_exchange_identification: read: Connection reset by peer
- [Solved] Ubuntu Error: Failed to connect to 127.0.0.1 port xxxxx: Connection refused
- Ubuntu Startup Error: warning failed to connect to lvmetad,falling back to device scanning
- Login Error: token failed, reason: getaddrinfo EAI_AGAIN ks-apiserver (kubesphere is Installed)
- [Solved] ERROR: The kernel module failed to load, because it was not signed by a key that is trusted by the
- [Solved] Ubuntu20.04 Error: “Failed to install the following Android SDK packages as some licences have not..“error
- Ubuntu18.04 Compile Error: android 7 FAILED [How to Solve]
- [Solved] SecureCRT Connect Error: The server has disconnected with an error…..
- [Solved] Sshpass Error: Host key verification failed
- [Solved] Linux scp Error: Host key verification failed.