Fixing SSH to Old Devices

Snippets

Legacy SSH compatibility example. Scope exceptions to an individual device and retain host-key verification.

Older devices may not support modern ciphers / key exchanges.

While technically they’re insecure it may not be possible to retire the device in question, so here is a work around to allow the weaker ciphers.

ssh \
  -oKexAlgorithms=+diffie-hellman-group14-sha1 \
  -oHostKeyAlgorithms=+ssh-rsa \
  -oMACs=+hmac-sha1 \
  user@device