Bypass host key checking for crowbar admin servers
Clone this wiki locally
If you have two admin boxes while developing - and you switch between them, shutting one down while you work on the other, it can get annoying to have host key mismatches. To eliminate those mismatches:
First, setup a hostname for the admin server in your
Then add the following to your
Host admin StrictHostKeyChecking no UserKnownHostsFile=/dev/null
Setup your keys as usual:
$ ssh-copy-id crowbar@admin
You'll be able to access both boxes without key mis-matches and having to update your known_hosts file all the time.
Of course, this reduces security - and we hope you know what you're doing.