How to automatically accept the remote key when rsyncing? June 10, 2023 by Tarik You can add this host’s key to known_hosts beforehand like this: ssh-keyscan $someip >> ~/.ssh/known_hosts