beta.blog

Archive for May, 2013

Mac OS X: Remove Known SSH Host (Terminal)

by on May.03, 2013, under MAC OS X

I just wanted to remove a known SSH host from my MacBook, because I re-installed my iPhone and I just couldn’t connect to it via SSH anymore.

MacBook-Air: beta$ ssh root@192.168.1.9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Please contact your system administrator.

Getting rid of this behaviour is fairly easy, just enter your Terminal and type the following command:

ssh-keygen -R server-name

Afterwards, when SSH’ing to your device for the next time, you should be able to connect as usual.

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!