cheat/cheats/ssh
2025-02-03 14:06:13 +01:00

9 lines
235 B
Plaintext

# use a jumphost
`ssh -J user@gateway[,user@gateway2] user@internal`
# forward remote port 8080 to localhost:1337
`ssh -L 1337:127.0.01:8080 user@host`
# forward local port 8080 to remote:1337
`ssh -R 1337:localhost:8080 user@host`