Error trying to connect to ssh
Jump to navigation
Jump to search
go back to Main Page, Computational Resources, Information & Help, Common Errors & Solutions
Connecting errors:
When you try to connect to a server you get the error:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 23:00:20:83:de:02:95:f1:e3:34:be:57:3f:cf:2c:e7. Please contact your system administrator. Add correct host key in /home/xahria/.ssh/known_hosts to get rid of this message. Offending key in /home/yourusername/.ssh/known_hosts:8 RSA host key for localhost has changed and you have requested strict checking. Host key verification failed.
This means that the server changed the authorization key so open with your favorite editor (vi, of course) the file $HOME/.ssh/known_hosts
vi $HOME/.ssh/known_hosts
and delete the line number that is referred in
Offending key in /home/yourusername/.ssh/known_hosts:8
line 8 in this case, and delete the whole line (only the referred line) save and try again, it will ask you about accept the key, type yes and you've just added the new key so it won't bother you again (till admin changes something... :)