For When You Can't Have The Real Thing
[ start | index | login ]
start > CentOS > 6 > ssh > Ignore Host-ID

Ignore Host-ID

Created by dave. Last edited by dave, 4 years and 169 days ago. Viewed 1,541 times. #2
[diff] [history] [edit] [rdf]
labels
attachments
(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)

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt