简体   繁体   中英

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

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM