From 606067cc38aa39ca0acbb7169f5e9cf87c351e1b Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Wed, 18 Nov 2015 16:02:33 +0100 Subject: [PATCH] Pass BatchMode=yes option to ssh Should help fail quickly in case of network issues. Remove the PreferredAuthentications setting which becomes redundant. Signed-off-by: Julien Cristau --- ud-replicate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ud-replicate b/ud-replicate index db384e3..869d65a 100755 --- a/ud-replicate +++ b/ud-replicate @@ -74,7 +74,7 @@ if [ -e /var/lib/misc/thishost/dns-zone ]; then cp /var/lib/misc/thishost/dns-zone $tempfile2 fi -rsync ${verbose} --delete-after --times -e 'ssh -i /etc/ssh/ssh_host_rsa_key -o PreferredAuthentications=publickey' -rp "${udhost}/var/cache/userdir-ldap/hosts/$HOST" . +rsync ${verbose} --delete-after --times -e 'ssh -i /etc/ssh/ssh_host_rsa_key -o BatchMode=yes' -rp "${udhost}/var/cache/userdir-ldap/hosts/$HOST" . makedb "$HOST/passwd.tdb" -o passwd.db.t if [ -s "$HOST/shadow.tdb" ] -- 2.20.1