Skip to content

Instantly share code, notes, and snippets.

@ephemerr
Last active August 16, 2017 09:06
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 ephemerr/675259e418835ee15f0f3575324cb7ec to your computer and use it in GitHub Desktop.
Save ephemerr/675259e418835ee15f0f3575324cb7ec to your computer and use it in GitHub Desktop.
SSH tunneling cheatsheet
Remote:
ssh.exe -R 1333:10.50.2.1:722 kahuna@8.8.8.8
Add port from current scope to remote machine. Where:
1333 - port in remote scope
10.50.2.1:722 - port in current scope
kahuna@8.8.8.8 - remote machine(ssh server)
Local:
ssh -L 127.1:1333:127.1:3128 kahuna@8.8.8.8
Add port from remote scope to current scope. Where:
127.1:1333 - port in current scope
127.1:3128 - port in remote scope
kahuna@8.8.8.8 - remote machine(ssh server)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment