Posts

Showing posts from December, 2012

SCP - RSA Host Key Validation Error

In my previous post (SSH - RSA Host Key Validation Error), I mentioned that SSH will prompt RSA host key validation error if you are connecting to a remote machine that it RSA host key had changed. This will happen if you are connecting to Virtual Machines that share the same IP address.

Actually, not only SSH, SCP will perform the same check and prompt for the same error is RSA host key is mismatch

To work around this issue, you can use the follow command

scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "source file" "destination file"
It uses the exact technic mentioned in my previous post.

SSH - Remote Host Identification Has Changed

When you see the error below, don't panic. It can be a numerous of reasons to encounter this.


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
33:23:41:5b:67:17:14:56:67:5b:cd:ef:b3:10:a9:5b.
Please contact your system administrator.
Add correct host key in /Users/alice/.ssh/known_hosts to get rid of this message.
Offending key in /Users/alice/.ssh/known_hosts:4
RSA host key for 192.168.1.2 has changed and you have requested strict checking.
Host key verification failed.
lost connection


Some reasons

Accessing VM machine with common IP addressIP topology has changed and caused an update to RSA fingerprin…