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
5 lines
199 B
Bash
Executable File
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 |