tuns.sh

· erock's pastes · raw

expires: 2025-04-11

 1tuns http dev:3000 ssh tuns.sh
 2# turns into
 3ssh -R dev:80:localhost:3000 tuns.sh
 4# user has access to the ssh command and can pass whatever to it
 5tuns http :3000 ssh -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519 tuns.sh
 6# result
 7ssh -R 80:localhost:3000 -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519 tuns.sh
 8# we can super default for tuns.sh
 9tuns :3000
10# result
11ssh -R 80:localhost:3000 tuns.sh
12