]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
run master ssh indefinitely
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 10 Dec 2010 14:59:10 +0000 (15:59 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 10 Dec 2010 14:59:10 +0000 (15:59 +0100)
gw-tests/lib.sh

index ae618fd6084f286cb1ff3b462fdaa5f3709c3904..739333c2227e353b387d5e01fb51e0a8e902a526 100644 (file)
@@ -35,9 +35,7 @@ sshgw() {
 
     if [[ ! -S $socket ]] || ! ssh -x -a -S $socket root@192.168.2.3 true; then
        # Create master connection to speed up subsequenct command.
-       # The ssh is put into background and the connection is closed
-       # after 10 minutes)
-       ssh -f -M -S $socket root@192.168.2.3 sleep 600 > /dev/null 2>&1
+       ssh -N -f -M -S $socket root@192.168.2.3 >/dev/null 2>&1
     fi
     ssh -x -a -S $socket root@192.168.2.3 "$@"
 }