Sometimes I need to connect to an older router, firewall, etc. but get an error like-
ssh admin@123.123.123.123
Unable to negotiate with 123.123.123.123 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
You can allow the insecure algorithms and ciphers. Obvious warnings, you're connecting insecurely, etc.
cd /etc/ssh
cp ssh_config ssh_config.bak
sudo nano ssh_config
Add-
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes128-cbc,3des-cb>
MACs hmac-md5,hmac-sha1,umac-64@openssh.com
KexAlgorithms +diffie-hellman-group14-sha1
You can just throw those in the beginning.
Good luck!
Adam Cushing
www.adamcushing.com