change in host key prevents ssh connection
Recently I installed centOS on an old junker so I could use it as an ftp server. I sped through the install, and missed some things, so I had to reinstall. After that, the machine I had been using to remote-administrate is couldn't connect to it via ssh anymore, giving this error:
Code:
taels@tornado:~$ ssh -l tails 192.168.1.XX
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
73:8c:45:e7:ac:d1:c5:34:5c:87:ce:5a:26:2e:90:43.
Please contact your system administrator.
Add correct host key in /home/taels/.ssh/known_hosts to get rid of this message.
Offending key in /home/taels/.ssh/known_hosts:3
RSA host key for 192.168.1.XX has changed and you have requested strict checking.
Host key verification failed.
I've tried editing /home/taels/.ssh/known hosts , but the file seems to be encryped, even when I use vi as root or with sudo. How can I add the correct host keys so that I can continue to use this server?
Thanks
I've seen 1980s pointer arithmetic-heavy K&R C programs more readable than this.
~gnolam
Bookmarks