What is an SSH config file?
An SSH config file is a plain text file that lets OpenSSH remember connection settings for each server. Instead of typing a long command such as ssh -i ~/.ssh/id_ed25519 [email protected] -p 22, you create a named Host entry in your ssh_config and connect with a short alias.
The user-level SSH configuration file lives at ~/.ssh/config on macOS and Linux, while the system-wide file is at /etc/ssh/ssh_config. Note that sshd_config is the server-side daemon config and is different from the client config this editor builds.
Each Host block can define the real HostName, login User, Port, IdentityFile, keepalive behavior, and ProxyJump or ProxyCommand settings. OpenSSH reads the matching block whenever you run ssh alias.