Skip to content

Instantly share code, notes, and snippets.

@pacmac
Created May 11, 2019 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pacmac/71bef4d78e8d6f2eae59deb8d25abfbc to your computer and use it in GitHub Desktop.
Save pacmac/71bef4d78e8d6f2eae59deb8d25abfbc to your computer and use it in GitHub Desktop.
SSH Tunnel
/etc/ssh/sshd_config
AllowTcpForwarding yes
GatewayPorts yes
## Listens on 222 and forwards to example.com:22
ssh -f -N -L *:222:*:22 example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment