Knowledge w/o sharing is nothing!

Convert OpenSSH key to RSA

This command converts it ! in-place !, so make sure to have a copy of original, if you even need one:

ssh-keygen -p -f openssh.key.pem -m pem

Bypass strict SSH host key checking

An SSH command has two useful parameters:

  • Strict Host Key Checking
  • User Known Hosts File

This little workaround came in handy a few times already. It shouldn’t be used always, as it a security check and it definitly shouldn’t be ignored. So a good example where it might be used, if you have a HA Cluster with a virtual IP which may flip between hosts and you have to SSH into that IP. Here’s the command:

$ ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected]