Created
May 11, 2019 11:08
-
-
Save pacmac/71bef4d78e8d6f2eae59deb8d25abfbc to your computer and use it in GitHub Desktop.
SSH Tunnel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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