Skip to content

Instantly share code, notes, and snippets.

@u1i
Created October 15, 2017 13:54
Show Gist options
  • Save u1i/dbc5250d268776df248d9703ca22fe65 to your computer and use it in GitHub Desktop.
Save u1i/dbc5250d268776df248d9703ca22fe65 to your computer and use it in GitHub Desktop.
Forward local port to remote public port via SSH
# Ports: destination, source
ssh -R 0.0.0.0:8080:localhost:80 -N [email protected]
# sshd needs GatewayPorts set to 'yes'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment