Can I manage my SSH passphrase with osxkeychain, for git?

Viewed 16

I'm trying to manage git credentials with keychain. I'm using

git config --global credential.helper osxkeychain

then do

% git pull                                                                                           
Enter passphrase for key '/.ssh/id_ed25519': 
Already up to date.
% git pull
Enter passphrase for key '/.ssh/id_ed25519': 
Already up to date.
%

Which tells me git is not remembering passwords. Is there any way to remember the passphrases?

1 Answers

I confirm the credential.helper is only there to cache HTTPS credentials. It would not be used for SSH connection at all.

You can add your key to the SSH agent in order to cache the passphrase which allows for your private key to be decrypted.

Related