cheat/cheats/ssh

9 lines
235 B
Plaintext
Raw Permalink Normal View History

2024-10-08 12:40:26 +02:00
# use a jumphost
2024-10-31 12:56:11 +01:00
`ssh -J user@gateway[,user@gateway2] user@internal`
# forward remote port 8080 to localhost:1337
`ssh -L 1337:127.0.01:8080 user@host`
2025-02-03 14:06:13 +01:00
# forward local port 8080 to remote:1337
`ssh -R 1337:localhost:8080 user@host`