Created
January 4, 2013 19:42
-
-
Save bucchere/4455304 to your computer and use it in GitHub Desktop.
Set up an ssh tunnel from localhost:1234 to hostname:5678
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
ssh -N -v -o ControlMaster=auto -o ExitOnForwardFailure=yes -o ConnectTimeout=10 \ | |
-o NumberOfPasswordPrompts=3 -o TCPKeepAlive=no -o ServerAliveInterval=60 \ | |
-o ServerAliveCountMax=1 username@hostname -L 1234/192.168.111.111/5678 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment