Skip to main content

Ignore Host-ID

(2014-06-26)

Problem

I want to ignore the host-ID on connection for ssh. Yes, I know it is a dumb idea.

Solution

Inline, ignore this time only:

ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no user@system

Permanent ignore examples, in ~/.ssh/config:

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

Host *
   StrictHostKeyChecking no
   UserKnownHostsFile=/dev/null

(Source)