sshconfig-lint

Duplicate Host blocks

All checks
warningChecked in the browserDUP_HOST

The same Host pattern appears in more than one block.

Why it matters

Repeated blocks hide which values are effective and make later changes easy to miss.

How to fix it

Choose the block that should own the alias, move any unique directives into it, and delete the second Host declaration. If the blocks describe different machines, give each one a distinct alias such as github-work and github-personal.

Before and after

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