Set defaults that apply to all hosts.
Section: Client Config Basics
Global defaults
sshconfig
sshconfig
Host *
ServerAliveInterval 30
AddKeysToAgent yes
IdentitiesOnly yesExplanation
Set defaults that apply to all hosts.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Client Config Basics
Pattern-based host block
Match groups of hosts with wildcard patterns.
Canonicalize hostnames
Resolve short names into FQDNs automatically.