Visit Counter

Thursday, April 9, 2015

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED



I've got this message below when trying to connect via SSH.


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 51:82:00:1c:7e:6f:ac:ac:de:f1:53:08:1c:7d:55:68. Please contact your system administrator. Add correct host key in /Users/isaacalves/.ssh/known_hosts to get rid of this message. Offending RSA key in /Users/isaacalves/.ssh/known_hosts:12 RSA host key for 104.131.16.158 has changed and you have requested strict checking. Host key verification failed.


#cd .ssh
#vi known_hosts

192.0.0.10 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAz6ja9nTPW/DnrUpr81ch Mwb7FXI/pfUVmIxryY/M+6AVIZgTydSVf4wcsyRzCW4R2OzNBx7my59pYpdUd2pVIvzLUr1CEMEVer2x Ej1EVJuziACVv7c+vsfamoD5I9ePTOPE99QzkL70LS85hraGHJclY2bQmrulnbW/75Fhl6k=afi-ssaerp2,192.0.0.11 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAzlXY5C/s36VI0Lkq9wDG
YJnoBufIAD2hDyfC75An1hlVar4gahWmOu191M3ZjpVOT6kZalpNmsL8+XCC3xVcKAWdqiSmDujwUjN1 nryDGT2cY8ml84tIMZat6PaFywdQ20f/nlOjtkP3nMcha1+EUoVlPPzuSI1WEWgIrYjSLE0=
192.0.0.25 ssh-rsa AAAABBAAAAB3NzaC1yc2EAAAABIwAAAIEA8Xcy1QiFMu4xQPOxoKrTf/InqJUi1VERJvoZb7jmv1rcUVTiDFlJJ7PXCgeGjyvUDpUuCd6Zy+1hgcQaSx9/XLB59x9PMEcZDPmwj6dsv4wajZA/v
AyOUbGyHFTpX250bHoq8SvdR9R3iSQ3JYSZ6byZlmX7TwTHt2UihRBMIq8=



I deleted above lines in .ssh/known_hosts to resolve this issue.
Since you updated your ssh key, getting the above message is normal.
Just edit ~/.ssh/known_hosts and delete line 7, as the message pointed you.