How to automatically accept the remote key when rsyncing?

You can add this host’s key to known_hosts beforehand like this:

ssh-keyscan $someip >> ~/.ssh/known_hosts

Leave a Comment