diff --git a/simple_backup/simple_backup.py b/simple_backup/simple_backup.py index 603ca4a..f4d9431 100755 --- a/simple_backup/simple_backup.py +++ b/simple_backup/simple_backup.py @@ -560,11 +560,11 @@ class Backup: f'{self._exclude_path} --files-from={self._inputs_path} / "{self._server}{self._output_dir}"' if self.ssh_keyfile is not None: - rsync = f'{rsync} -e \'ssh -i {self.ssh_keyfile} -o StrictHostKeyChecking=no\'' + rsync = f'{rsync} -e \'ssh -i {self.ssh_keyfile} -o StrictHostKeyChecking=accept-new\'' elif self._password_auth and which('sshpass'): - rsync = f'{rsync} -e \'sshpass -e ssh -l {self.ssh_user} -o StrictHostKeyChecking=no\'' + rsync = f'{rsync} -e \'sshpass -e ssh -l {self.ssh_user} -o StrictHostKeyChecking=accept-new\'' else: - rsync = f'{rsync} -e \'ssh -o StrictHostKeyChecking=no\'' + rsync = f'{rsync} -e \'ssh -o StrictHostKeyChecking=accept-new\'' if self._remote and self.remote_sudo: rsync = f'{rsync} --rsync-path="sudo rsync"'