diff --git a/scripts/setBrigde.sh b/scripts/setBrigde.sh index ede5d39..0c2508f 100755 --- a/scripts/setBrigde.sh +++ b/scripts/setBrigde.sh @@ -1,8 +1,8 @@ #!/bin/bash user=pi host=tutabaga.hd.free.fr -ps aux | grep ssh | grep $host > /dev/null +ps aux | grep autossh | grep $host > /dev/null res=$? if [ $res == 1 ]; then - ssh -N -R 65022:localhost:22 $user@$host& + autossh -M 2222 -f -N -R 65022:localhost:22 $user@$host fi