sshconfig-lint / guide

Fix IdentityFile not found

All SSH config guides

Resolve 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

  1. Expand ~ and inspect the exact path with ls -l.
  2. Correct the path or provision the intended key for this machine.
  3. Keep private keys readable only by their owner and rerun sshconfig-lint.
Problem
Host work
  IdentityFile ~/.ssh/id_work_old
Corrected
Host work
  IdentityFile ~/.ssh/id_work_ed25519