sshconfig-lint

Duplicate directive

All checks
warningChecked in the browserDUP_DIRECTIVE

A single-value directive is repeated in the same scope.

Why it matters

OpenSSH usually uses the first obtained value, so a later line can look effective while doing nothing.

How to fix it

Decide which value should actually apply, keep it as the only directive in that Host block, and delete the other line. Verify the result with ssh -G work, because simply moving the later value does not override an earlier match.

Before and after

What is wrong
Host work  User deploy  User admin
Corrected configuration
Host work  User deploy