How to use it

  1. Try to connect as normal, for example ssh admin@192.168.1.20, and copy the error. It usually looks like no matching host key type found. Their offer: ssh-rsa,ssh-dss.
  2. Paste it above with a short name for the device and its address.
  3. Copy the block into ~/.ssh/config (create the file if it doesn’t exist), then connect with ssh old-switch, using your short name.

Prefer not to touch your config? Use the one-off command instead. It applies the same options to that single connection.