Type your passphrase exactly once, ever
The combo that makes daily SSH friction-free on macOS:
AddKeysToAgent yes— when you use a key, auto-add it to ssh-agent.UseKeychain yes— store the passphrase in the system Keychain so it survives reboots.- Default
IdentityFile— so SSH knows which key to use without flags.
First connection after you set this up: SSH prompts once for the passphrase, stores it in Keychain, adds the key to the agent. Every connection after that — across reboots, across reinstalls — no passphrase prompt. The agent and Keychain handle it all.
Cross-platform caveat
UseKeychain is macOS-only. On Linux, it's an unknown directive and triggers a parse error. If you share ~/.ssh/config across both, wrap the macOS-specific lines so Linux ignores them gracefully.