"Host key verification failed" error when transfering files using SCP command

Posted by rvsi on Ask Ubuntu See other posts from Ask Ubuntu or by rvsi
Published on 2012-06-07T09:49:12Z Indexed on 2012/06/07 10:48 UTC
Read the original article Hit count: 737

Filed under:

When I am trying to transfer files using SCP command I'm getting this error (Removed my IP and RSA 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
------------------------(RSA key)
Please contact your system administrator.
Add correct host key in /home/users/myaccount/.ssh/known_hosts to get rid of this message.
Offending key in /home/users/myaccount/.ssh/known_hosts:4
RSA host key for 'my IP' has changed and you have requested strict checking.
Host key verification failed.
lost connection

I am using newly installed Ubuntu 12.04 and I can connect to this server using ssh. Any help?

© Ask Ubuntu or respective owner

Related posts about scp