Skip to content

Instantly share code, notes, and snippets.

@sputnick-dev
Created January 3, 2016 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sputnick-dev/e3d1aad42cb1d3097a15 to your computer and use it in GitHub Desktop.
Save sputnick-dev/e3d1aad42cb1d3097a15 to your computer and use it in GitHub Desktop.
sputnick@local:/home/sputnick% ssh -
option
-1 -- forces ssh to try protocol version 1 only
-2 -- forces ssh to try protocol version 2 only
-4 -- forces ssh to use IPv4 addresses only
-6 -- forces ssh to use IPv6 addresses only
-A -- enables forwarding of the authentication agent connection
-C -- compress data
-D -- specify a dynamic port forwarding
-E -- append log output to file instead of stderr
-F -- specify alternate config file
-G -- output configuration and exit
-I -- specify smartcard device
-K -- enable GSSAPI-based authentication and forwarding
-L -- specify local port forwarding
-M -- master mode for connection sharing
-N -- do not execute a remote command (protocol version 2 only)
-P -- use non privileged port
-Q -- query parameters
-R -- specify remote port forwarding
-S -- specify location of control socket for connection sharing
-T -- disable pseudo-tty allocation (protocol version 2 only)
-V -- show version number
-W -- forward standard input and output to host
-X -- enable (untrusted) X11 forwarding
-Y -- enable trusted X11 forwarding
-a -- disable forwarding of authentication agent connection
-b -- specify interface to transmit on
-c -- select encryption cipher
-e -- set escape character
-f -- go to background
-g -- allow remote hosts to connect to local forwarded ports
-i -- select identity file
-k -- disable forwarding of GSSAPI credentials
-l -- specify login name
-m -- specify mac algorithms
-n -- redirect stdin from /dev/null
-o -- specify extra options
-p -- specify port on remote host
-q -- quiet operation
-s -- invoke subsystem
-t -- force pseudo-tty allocation
-v -- verbose mode (multiple increase verbosity, up to 3)
-w -- request tunnel device forwarding
-x -- disable X11 forwarding
-y -- send log info via syslog instead of stderr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment