Unable to negotiate with x.x.x.x port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1. Are your experiencing this issue as well on older Networking devices?
Here is what you can do:
- Provide the KEX (Key Exchange Methode) in the ssh command
- Change your config_ssh to allow permanently a connection to older KEX Algorithms
Provide the KEX (Key Exchange Methode) in the ssh command
ssh -o KexAlgorithms=diffie-hellman-group14-sha1 -o HostKeyAlgorithms=+ssh-rsa [email protected]
Change your config_ssh
sudo nano /etc/ssh/ssh_config
Host *
KexAlgorithms +diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521
HostKeyAlgorithms +*
ctrl + x to save the new configuration