I've created an RSA key with a non-default key name: github_id_rsa. In order to not get the error "Permission denied (publickey)" when trying to push to or pull from Github I have to issue the command ssh-add github_id_rsa; however, this is not persistent. What do I need to do to get Keychain to remember this RSA key and to remember the passphrase?

link|improve this question

64% accept rate
feedback

1 Answer

up vote 1 down vote accepted

Turns out instead of using ssh-add github_id_rsa, I just needed to use ssh-add -K github_id_rsa in order to add the identity and passphrase to my keychain.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.