#!/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 2>&1 & xdg-open http://127.0.0.1:9090