- Command-line options take precedence over configuration files.
- The user-specific configuration file
~/.ssh/config
is used next.- Finally, the global
/etc/ssh/ssh_config
file is used.The first obtained value for each configuration parameter will be used.
- Empty lines and lines starting with '#' are comments.
- Each line begins with a keyword, followed by argument(s).
- Configuration options may be separated by whitespace or optional whitespace and exactly one =.
- Arguments may be enclosed in double quotes (") in order to specify arguments that contain spaces.
ssh.com/academy/ssh/config#format-of-ssh-client-config-file-ssh_config