2009-08-13

Bypassing SSH host key checks and the SSH agent

Sometimes you have too many SSH keys loaded, and trying to SSH to a box will fail. Sometimes you're trying to SSH to a box that's been rebooted into another OS or from a rescue CD.

The following command will disable key-based authentication, and ignore your known_hosts file:

ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o'RSAAuthentication=no' -o 'PubkeyAuthentication=no' 127.0.0.1

No comments: