ruang.work

Add SSH private key to Keychain to be automatically available when ssh

  • Avatar for Ilham Nuruddin Al Huda
Ilham Nuruddin Al Huda
•

3 min read

On OSX, the native ssh-add command has a special argument to save the private key’s passphrase in the OSX Keychain, which means that your normal login will unlock it for use with ssh1

go to Store passphrase in the Keychain section

Store passphrase in the Keychain

Terminal window
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
go to Footnotes section

Footnotes

  1. How can I permanently add my SSH private key to Keychain so it is automatically available to ssh? ↩