Trying to ssh into our Cisco access points, we get an error saying “no matching key exchange method found. Their offer: diffie-hellman-group1-sha1” … to one-off enable older, deprecated algorithms, we added a cisco.conf to /etc/ssh/ssh_config.d (/etc/ssh/ssh_config includes /etc/ssh/ssh_config.d/*.conf)
Host <IP> Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr KeyAlgorithms diffie-hellman-group1-sha1
And restart sshd — voila*, you can SSH into the router / access point / etc.
* — you may get an invalid key length error. In this case, you need to regenerate the key on the Cisco device using a 2048-bit key:
config term crypto key zeroize rsa crypto key generate rsa modulus 2048 end