add 'boxweb' command

will create a tunnel when started from a macOS
This commit is contained in:
2026-05-22 14:16:04 +02:00
parent 9201a3c90f
commit d1d467e310
Executable
+14
View File
@@ -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