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.


Popular posts from this blog

FFMPEG - Creating timelapse with FFMPEG with JPEG

MP4 File Format Part 1