From 221f666ebd666d63b5b490673f34060294259ecd Mon Sep 17 00:00:00 2001 From: ssamson-tis Date: Thu, 12 May 2016 12:14:13 +0200 Subject: [PATCH] ssh ne doit pas demander interactivement de mot de passe, meme si la cle n'est pas bonne. --- libtisbackup/backup_rsync.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtisbackup/backup_rsync.py b/libtisbackup/backup_rsync.py index c53cf94..860175b 100644 --- a/libtisbackup/backup_rsync.py +++ b/libtisbackup/backup_rsync.py @@ -140,6 +140,8 @@ class backup_rsync(backup_generic): else: # case of rsync + ssh ssh_params = ['-o StrictHostKeyChecking=no'] + ssh_params.append('-o BatchMode=yes') + if self.private_key: ssh_params.append('-i %s' % self.private_key) if self.cipher_spec: