[script] add setBridge script
This commit is contained in:
parent
e6866c0ece
commit
571ec13b7c
8
scripts/setBrigde.sh
Executable file
8
scripts/setBrigde.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/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
|
Loading…
Reference in New Issue
Block a user