Cha Gascon Inexplicable Software Angst

12Aug/080

How to Disable known_hosts in ssh

I've been working on building custom live linux systems for a while now. The problem is, everytime I reboot the live linux machine and I ssh/scp to it, I get this message:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
64:af:03:87:17:e4:23:51:a5:1c:12:e4:47:90:70:b0.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:1
RSA host key for 192.168.1.179 has changed and you have requested strict checking.
Host key verification failed.

Normally, I'll just remove the offending line from the know_hosts file and get ony with my life, but after repetitive rebooting and repetitive RSA host warnings, it's starting to annoy me.

To disable rsa host checking, add a config file to your local .ssh folder,

vim ~/.ssh/config

and add the following options:

# automatically adds rsa host key to list of known hosts
StrictHostKeyChecking no
# sets know_hosts file to the data sink so it will never be written
UserKnownHostsFile /dev/null

Tagged as: , , Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.

About

Cha is a Software Developer engaged in C/C++ and Java programming, with extensive development experience in Linux/Unix. Currently residing in Calgary, Alberta, Canada. Latest CV

Recent Posts

Tags

Acer AMD Ateneo Bashing Bass Blog Blueblade CMS Condo Death DNS Family Fedora Finance Free Software Movement Gear GNU Google Hardware Internet Interview Java Jazz Kernel Laptop Linux Load Balancing Mobile MP3 Music Neugent Open Source PhilMusic Photography Programming Richard Stallman SCP Sisig Software Engineering Squire SSH Thesis Travel University of Calgary Wordpress

Recent Comments

teach tip on Lone Jam
Jaco Pastorius playing great! I love it!
RG on Google Zurich
LOL. This reminds me of a medical residency interview!
dhan on June 25 IT Forum: CS Thesis Topics
give me a thesis topic,.,thnks this my email add: dhanilo_cute@y.c
someone on Kitchie Nadal Sucks
kitchie is unique..her voice is quirky,it cracks and has that semi "paos" sound but is still okay to listen too..she ...
Martin Cruz on Lone Jam
ako riiiin, tagal na'ng walang tugtog! quit all my bands. haha.
cabadak on Kitchie Nadal Sucks
Paano Google ang mga setting ng DNS? simple: http://www.cabadak.com/tl/google-dns-ayarlari-nasil-yapilir/
ruinx on Pinoy-made DotA v6.34 AI Map
panis kahit lima pa sila
nash on June 25 IT Forum: CS Thesis Topics
can u pass it the hall list of thesis proposal... i need it in next week...... thx and advnce...
JocJoc on Kitchie Nadal Sucks
Naaalala nyo pa ba aq? Hahahah, mga putang ina kayo. Gusto ko lang kantutin si Kitchie! Igagang rape pa namin sya.. Mga 689 boys ...
rapeaimee on Kitchie Nadal Sucks
I don't care kung indi sya marunong kumanta. Basta, ok na yung SEXY nyang katawan. Gusto naming ipenetrate si Kitchie Nadal.

Archives