Files
Server-scripts/utils/servertunnel.sh
T
Lucas Vivohost daf0457175 refactor: improve SSH local port forwarding script
refactor: improve SSH tunnel helper

- make SSH tunnel configuration explicit
- validate DDNS resolution
- validate SSH private key
- improve quoting and shell safety
- add descriptive status output
- document local and remote forwarding endpoints
- preserve background SSH forwarding behavior
2026-09-14 12:44:39 +02:00

5 lines
199 B
Bash
Executable File

#!/bin/bash
ssh -o ExitOnForwardFailure=yes -fNL 127.0.0.2:58846:localhost:58846 \
lucas@$(dig +short someoneslinux.ddns.net @resolver1.opendns.com) \
-p 3032 \
-i /home/lucas/.ssh/id_rsa