How to Protect SSH Keys: Why File Permissions and Password Vaults Fall Short
A key file in ~/.ssh can be copied by any script, and a vault decrypts the key in memory. A hardware key in the Mac's Secure Enclave or a YubiKey can't be copied. Here's how to set one up.