sshconfig-lint

Wildcard Host ordering

All checks
warningChecked in the browserWILDCARD_ORDER

A specific Host block appears after Host *.

Why it matters

OpenSSH keeps the first value it obtains for most parameters. A broad earlier block can therefore override a later specific value.

How to fix it

Move every specific Host block above the broad Host * defaults. Afterwards run ssh -G github.com and inspect the effective User, HostName, and IdentityFile values to confirm the order.

Before and after

What is wrong
Host *  User deploy Host github.com  User git
Corrected configuration
Host github.com  User git Host *  User deploy