Saturday, December 8, 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.

No comments:

Post a Comment

Hadoop - How to setup a Hadoop Cluster

Below is a step-by-step guide which I had used to setup a Hadoop Cluster Scenario 3 VMs involved: 1) NameNode, ResourceManager - Host...