From fac41092c0ec71de3978b3db11ad22aeb0f0d2d0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 31 Mar 2021 07:12:13 +0200 Subject: backup.in: send some data over the ssh for the tunnel to avoid timeouts --- backup.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.in b/backup.in index bd3d38b..63ee756 100755 --- a/backup.in +++ b/backup.in @@ -149,7 +149,7 @@ elif [ "$#" -eq 4 ]; then exit 1 fi rsyncShell="-e ssh -${ipVer} -p${lokPort} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" - tunnelBefehl="ssh -${ipVer} -t -t -L${localAddress}:${lokPort}:${QuellIP}:22 ${sshHopp}" + tunnelBefehl="ssh -${ipVer} -t -t -L${localAddress}:${lokPort}:${QuellIP}:22 ${sshHopp} 'while sleep 60; do date; done'" Quelle="$(echo "$3" | sed "s|${QuellIP}|${localAddress}|")" else usage -- cgit v1.2.3