sshconfig-lint

Invalid directive value

All checks
errorChecked in the browserINVALID_VALUE

A directive contains a number, duration, mask, DSCP value, or named option that OpenSSH does not accept.

Why it matters

Invalid values can stop SSH from loading the config before a connection starts. Small spelling differences also matter. ControlMaster accepts autoask, but not auto-ask, and AddressFamily accepts inet, but not ipv4.

How to fix it

Use Port 1 through 65535 and non-negative counters. Use the exact documented names for options such as AddressFamily, ControlMaster, StrictHostKeyChecking, LogLevel, and PubkeyAuthentication. The checker accepts modern OpenSSH values without guessing your installed client version. Verify the result with ssh -G production.

Before and after

What is wrong
Host production  Port 70000  AddressFamily ipv4  ControlMaster auto-ask  PubkeyAuthentication bound
Corrected configuration
Host production  Port 22  AddressFamily inet  ControlMaster autoask  PubkeyAuthentication host-bound