Disable OpenSSH Host Key Checking

Very useful if you are trying to automate rsync / ssh commands remotely and want to avoid prompts.

rsync -e 'ssh -o UserKnownHostsFile=/dev/null,StrictHostKeyChecking=no' -avr /local/path USER@HOST:/remote/path

Leave a Reply

Your email address will not be published. Required fields are marked *