Last active
September 14, 2015 04:47
-
-
Save charlie-wasp/d8e219ed0d10b0c78eca to your computer and use it in GitHub Desktop.
Open SSH tunnel bash command
This file contains hidden or 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
#ssh -L <local_machine_port>:<remote_machine_ip>:<remote_machine_port> -p <remote_machine_ssh_port> -l <remote_machine_ssh_user> -N <remote_machine_ip> | |
#Example | |
ssh -L 5555:100.100.100.100:80 -p 22 -l root -N 100.100.100.100 | |
# Now go to localhost:5555 and you'll see 192.168.108.52:80 actually |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment