aboutsummaryrefslogtreecommitdiff
path: root/ssh-tunnel-all
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-05-19 18:38:39 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-05-19 18:38:39 +0200
commite8cf42f2f17151378574ee5b50f29904a1067bee (patch)
tree86b4db80971ecf9818ad769bd8b7fa337d218731 /ssh-tunnel-all
parentc3bfa44d1b6da88c184fc3312944cf47d1dfd7f2 (diff)
downloadbin-e8cf42f2f17151378574ee5b50f29904a1067bee.tar.gz
bin-e8cf42f2f17151378574ee5b50f29904a1067bee.zip
added readmeHEADmain
Diffstat (limited to 'ssh-tunnel-all')
-rwxr-xr-xssh-tunnel-all31
1 files changed, 0 insertions, 31 deletions
diff --git a/ssh-tunnel-all b/ssh-tunnel-all
deleted file mode 100755
index 9c35202..0000000
--- a/ssh-tunnel-all
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env zsh
-set -euo pipefail
-
-SOCK="${XDG_RUNTIME_DIR:-/tmp}/sanctum-all.sock"
-HOST="lukasz@192.168.33.5"
-PORT="57385"
-
-if [[ -S "$SOCK" ]]; then
- if ssh -S "$SOCK" -O check -p "$PORT" "$HOST" >/dev/null 2>&1; then
- echo "Tunnel already running"
- exit 0
- else
- rm -f "$SOCK"
- fi
-fi
-
-ssh -fN \
- -M \
- -S "$SOCK" \
- -p "$PORT" \
- -L 127.0.0.1:18080:127.0.0.1:8080 \
- -L 127.0.0.1:8502:127.0.0.1:8502 \
- -L 127.0.0.1:5055:127.0.0.1:5055 \
- -L 127.0.0.1:8000:127.0.0.1:8000 \
- -L 127.0.0.1:4444:127.0.0.1:4444 \
- -L 127.0.0.1:7070:127.0.0.1:7070 \
- -L 127.0.0.1:7659:127.0.0.1:7659 \
- -L 127.0.0.1:7660:127.0.0.1:7660 \
- "$HOST"
-
-echo "Tunnel started"