summaryrefslogtreecommitdiff
path: root/bin/stbip
diff options
context:
space:
mode:
Diffstat (limited to 'bin/stbip')
-rwxr-xr-xbin/stbip7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/stbip b/bin/stbip
new file mode 100755
index 0000000..e4a51a0
--- /dev/null
+++ b/bin/stbip
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Check or establish a ssh tunnel for remote acess to syncthing GUI on bip.
+netstat -t4ln | grep 9090 ||
+ ssh -N -L 9090:127.0.0.1:8384 bip.im </dev/null >/dev/null 2>&1 &
+
+xdg-open http://127.0.0.1:9090