Skip to content

Instantly share code, notes, and snippets.

@cayuu
Last active December 16, 2015 18:00
Show Gist options
  • Save cayuu/5474930 to your computer and use it in GitHub Desktop.
Save cayuu/5474930 to your computer and use it in GitHub Desktop.
Working shell gist to `ssh` tunnel local port through server
ssh -p 22 -NT -g -R *:<toport>:127.0.0.1:<fromport> [email protected] -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment