SSH Config
Table of contents
Useful SSH CLI Flags
-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
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
References: