Using MacOS X Keychain with ssh-agent Mar 13, 2022 • mjbronarz If you want to store your ssh-key password in Apple Keychain do the following: Edit .ssh/config and add: Host * UseKeychain yes AddKeysToAgent yes Save the file and add the key to ssh-agent: ssh-add .ssh/id_ed25519 And that’s all folks.