Skip to content

Instantly share code, notes, and snippets.

@sidja
Created November 22, 2016 22:45
Show Gist options
  • Save sidja/ab7477a460d662e5cec7e21f8403cf2d to your computer and use it in GitHub Desktop.
Save sidja/ab7477a460d662e5cec7e21f8403cf2d to your computer and use it in GitHub Desktop.
Tunnel through SSH
#### Port remote host to local tunnel
ssh -L <local_port>:<local_host>:<remote_port> <remote_host> -N
ssh -L 6677:localhost:5432 bishop -N
#or
ssh -L 55477:localhost:22 remotehost -N
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment