Created
November 22, 2016 22:45
-
-
Save sidja/ab7477a460d662e5cec7e21f8403cf2d to your computer and use it in GitHub Desktop.
Tunnel through SSH
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
#### 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