sshconfig-lint / guide
How to validate ~/.ssh/config
← All SSH config guidesCheck an OpenSSH client config for semantic mistakes, local file problems, and Include errors before connecting.
Why a valid config can still be wrong
OpenSSH often accepts a file even when later settings are ineffective, unsafe, or point to missing files. A successful connection is not a complete validation.
A reliable way to fix it
- Paste the config into the private browser checker for a quick content check.
- Run sshconfig-lint ~/.ssh/config for Include and IdentityFile checks.
- Use ssh -G your-host to inspect the final values OpenSSH applies.
Host *
User deploy
Host work
User aliceHost work
User alice
Host *
User deploy