SSH to 'old' Cisco¶
Issue¶
When SSH'ing old Cisco devices, you might get:
This happens because your SSH client is more recent and disabled SHA-1 based key exchange algorithms by default, while the server only supports those older ones. Also, old ciphers are used by the Cisco device.
Solution¶
Or, to make it persistent for this host, in ~/.ssh/config:
⚠️ Security note: aes*-cbc, ssh-rsa (SHA-1), and hmac-sha1-96 are deprecated and weak.
Better fix:
- Add modern host keys: ed25519 (and optionally RSA with RSA-SHA2)
- Enable modern KEX (curve25519-…, diffie-hellman-group-exchange-sha256)
- Enable modern MACs (hmac-sha2-256/512) and AEAD cipher (chacha20-poly1305@openssh.com) or CTR AES.