Sharing settings across multiple hosts
Wildcards in Host patterns let you apply settings to a group of hosts at once. * matches any string. ? matches any single character. You can list multiple patterns space-separated.
How matching works
SSH reads ~/.ssh/config top to bottom. For each setting, the first matching Host block wins. So you put specific entries above general ones, and the catch-all Host * at the very bottom.
This means Host * is your global defaults — settings inherited by every host that doesn't override them.
Match vs Host
Beyond Host, OpenSSH also supports Match blocks for conditional matching by user, originalhost, exec result, etc. Useful for advanced setups, overkill for personal fleets. Stick with Host patterns 95% of the time.