config/scripts/setBrigde.sh

9 lines
164 B
Bash
Raw Normal View History

2013-02-22 18:17:18 +01:00
#!/bin/bash
user=pi
host=tutabaga.hd.free.fr
ps aux | grep ssh | grep $host > /dev/null
res=$?
if [ $res == 1 ]; then
ssh -N -R 65022:localhost:22 $user@$host&
fi