Skip to content

Instantly share code, notes, and snippets.

@jimmydo
Last active November 17, 2022 05:00
Show Gist options
  • Save jimmydo/18d850c402cdd75b515de8898ea69119 to your computer and use it in GitHub Desktop.
Save jimmydo/18d850c402cdd75b515de8898ea69119 to your computer and use it in GitHub Desktop.
Store SSH key passphrase in the macOS keychain

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment