Skip to content

Instantly share code, notes, and snippets.

@oscarrenalias
Created November 25, 2011 22:11
Show Gist options
  • Save oscarrenalias/1394536 to your computer and use it in GitHub Desktop.
Save oscarrenalias/1394536 to your computer and use it in GitHub Desktop.
Command to create an SSH tunnel
ssh -i key.pem -v -2 -C -D 4567 -N user@server
-2: force SSH v2 protocol
-C: enable compression
-D <port>: use given local port
-N: do not run any command in the remote server
-v: verbose mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment