Configuring ssh
to use the macOS keychain allows using a passphrase-protected SSH key without having to repeatedly enter the passphrase.
To store passphrases in the keychain, add this to ~/.ssh/config
:
UseKeychain yes
You'll now only be asked to enter a passphrase the first time you use an SSH key.
View and edit passphrase items in the Keychain Access app by searching for the key's filename.