Skip to content

Instantly share code, notes, and snippets.

@charlie-wasp
Last active September 14, 2015 04:47
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 charlie-wasp/d8e219ed0d10b0c78eca to your computer and use it in GitHub Desktop.
Save charlie-wasp/d8e219ed0d10b0c78eca to your computer and use it in GitHub Desktop.
Open SSH tunnel bash command
#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