Skip to content

Instantly share code, notes, and snippets.

@bucchere
Created January 4, 2013 19:42
Show Gist options
  • Save bucchere/4455304 to your computer and use it in GitHub Desktop.
Save bucchere/4455304 to your computer and use it in GitHub Desktop.
Set up an ssh tunnel from localhost:1234 to hostname:5678
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