One solution to this problem is to add a correct key for a particular server manually. If you feel 100% that this warring can be ingnored simply remove a line with a incorrect key. In this particular case below an offending key is on line 21. To remove a line 21 ( use your line number )use a following command:

sed -i '21d' ~/.ssh/known_hosts

error message:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
a2:ef:d6:da:26:f0:9b:5f:d8:2a:f1:e5:1a:5b:39:2f.
Please contact your system administrator.
Add correct host key in /home/user_name/.ssh/known_hosts to get rid of this message.
Offending key in /home/user_name/.ssh/known_hosts:21
RSA host key for 10.1.1.4 has changed and you have requested strict checking.
Host key verification failed.


Free Linux eBooks

Do you have the right skills?

Our IT Skills Watch page reflects an up to date IT skills demand leaning towards the Linux and Unix environment. We have considered a number of skills and operating systems.

See the result...

Linux Online Training

Learn to run Linux servers and prepare for LPI certification with Linux Academy. 104 available video lessons with PDF course notes with your own server!

Go to top