Force accept of different ssh key
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
ce:51:1c:54:47:d1:6e:bf:20:22:aa:23:ef:30:3a:54.
Please contact your system administrator.
Add correct host key in /home/dev/.ssh/known_hosts to get rid of this message.
Offending key in /home/dev/.ssh/known_hosts:4
RSA host key for 10.66.133.131 has changed and you have requested strict checking.
Host key verification failed.
Solution #1
ssh-keygen -f "~/.ssh/known_hosts" -R 10.65.11.130
Solution #2 (if you know why it has happened and want to override the warning):
sed -i '4d' ~/.ssh/known_hosts
Where 4d means the fourth line. Replace with your specific line as mentioned in the error message.
Recent Comments