SSH config file
The client configuration file, ~/.ssh/config, where Host blocks give short aliases their real hostname, user, port and identity file.
In more detail
With a Host prod block, ssh prod expands to the full connection details. Aliases reduce typing but do not bypass host key checks or server authorization. ssh -G prod prints the expanded settings when a connection reaches the wrong account or port.
Related terms
- SSH — A protocol for logging in to and running commands on another computer securely over a network.
- SSH key — A key pair used to log in over SSH: the private key stays on your machine and the public key is added to the server account.
- agent forwarding — An SSH option that lets a remote server use your local ssh-agent to authenticate onward connections as you.
- host key — The key pair an SSH server uses to prove its identity to every client that connects.
Taught in
- SSH Keys, The Agent And The Config File — Linux Fundamentals & Systems Administration