From d1d467e310127346e1f70e0b87a731c076ff7f9c Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Fri, 22 May 2026 14:16:04 +0200 Subject: [PATCH] add 'boxweb' command will create a tunnel when started from a macOS --- boxweb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 boxweb diff --git a/boxweb b/boxweb new file mode 100755 index 0000000..165b479 --- /dev/null +++ b/boxweb @@ -0,0 +1,14 @@ +#!/bin/bash +if [[ -z "$1" ]]; then + echo "Usage example:" + echo " boxweb camea linse-dil5" +elif [[ "$1" == "browser" ]]; then + sleep 1 + open http://localhost:8050/?tunneled=1 +else + echo "drilling ssh tunnel and open browser page" + echo "please close the page after use to close the ssh tunnel" + bash $(realpath $0) browser & + #ssh -L 8010:$2:8010 -L 8080:$2:80 $1@$1 + ssh -L 8050:$2:8050 -L 8051:$2:8051 linse@$1 "sleep 5;echo ..." +fi