Ignore SSH host key checking

I have a range of IPs that I use for testing various Linux installations. This causes grief as each install gets its own SSH key. To tell SSH to ignore the key for a given IP address change your ~/.ssh/config

Host 192.168.0.*
    StrictHostKeyChecking no
    UserKnownHostsFile=/dev/null

Or if you just want to change it on a per connection basis at the command line:

ssh -o UserKnownHostsFile=/dev/null,StrictHostKeyChecking=no user@domain.com
Leave A Reply
All content licensed under the Creative Commons License