sshconfig-lint / guide
Fix IdentityFile not found
← All SSH config guidesResolve missing SSH private-key paths without weakening file permissions or deleting valid host settings.
Why a valid config can still be wrong
A typo, moved key, or stale dotfiles path can leave a Host block pointing at a file that does not exist on the current machine.
A reliable way to fix it
- Expand ~ and inspect the exact path with ls -l.
- Correct the path or provision the intended key for this machine.
- Keep private keys readable only by their owner and rerun sshconfig-lint.
Host work
IdentityFile ~/.ssh/id_work_oldHost work
IdentityFile ~/.ssh/id_work_ed25519