Last active
August 16, 2017 09:06
-
-
Save ephemerr/675259e418835ee15f0f3575324cb7ec to your computer and use it in GitHub Desktop.
SSH tunneling cheatsheet
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
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