Bypass host key checking for crowbar admin servers

juddmaltin-dell edited this page Dec 3, 2012 · 6 revisions

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 /etc/hosts:

192.168.124.10 admin

Then add the following to your ~/.ssh/config:

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.