LWN.net Logo

Merry Christmas from FreeBSD

Merry Christmas from FreeBSD

Posted Jan 6, 2012 14:06 UTC (Fri) by amonnet (subscriber, #54852)
In reply to: Merry Christmas from FreeBSD by wookey
Parent article: Merry Christmas from FreeBSD

Theses ssh options might help :

-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no

+++


(Log in to post comments)

Merry Christmas from FreeBSD

Posted Jan 6, 2012 14:19 UTC (Fri) by wookey (subscriber, #5501) [Link]

Realy? That's it? I tried the NoStrictHostKeyChecking thing, but not the null hosts file. You wouldn't believe how many hours I wasted not-discovering that, when all I had to do was wait a couple of years for an opportunity to ask on LWN :-)

Merry Christmas from FreeBSD

Posted Jan 6, 2012 16:39 UTC (Fri) by raven667 (subscriber, #5198) [Link]

You should also be able to just remove the cached key entries from ~/.ssh/known_hosts or make the known_hosts file read-only so that new public keys aren't cached. That's what I've done before to handle provisioning networks where one sees new host keys for the same IPs all the time.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds