SSH Config

Table of contents
  1. Useful SSH CLI Flags
  2. SSH (Client) Config
  3. SSHD (SSH Daemon) Config

Useful SSH CLI Flags

Man page

-i: Identity file
-F: Specify a config file (if omitted, default is ~/.ssh/config)
-J [user@]host[:port]: Proxy jump
-p: Port
-T: Disable pseudo-tty allocation
-L local_socket:remote_host:remote_port: Local forwarding

Flags are case sensitive


SSH (Client) Config

Client configuration man page

Host DECLARATION_SCOPE_NAME
  User USERNAME
  Hostname HOSTNAME/IP
  Port SSH_PORT
  IdentityFile PRIV_KEY
  LocalForward LOCAL_PORT REMOTE_HOST:REMOTE_PORT
  ProxyJump JUMP_SERVER_HOST
  RequestTTY yes/no
  ForwardX11 yes/no
  • Blank lines are ignored. Use # for comments.
  • To use spaces in a value, surround it with ".

SSHD (SSH Daemon) Config

To be added

Daemon configuration man page


References: