sshconfig-lint

Missing IdentityFile

← All checks
errorChecked by the CLIMISSING_IDENTITY

An IdentityFile path does not exist on the local machine.

Why it matters

SSH cannot use a private key that was moved, renamed, or deleted.

How to fix it

Check the path with ls or test -f, then point IdentityFile at the existing private key. If the key was intentionally removed, delete the directive or use IdentityFile none to explicitly disable identity files. If it was restored, keep its permissions restricted to the owner.

Before and after

What is wrong
Host production  IdentityFile ~/.ssh/id_removed
Corrected configuration
Host production  IdentityFile ~/.ssh/id_ed25519