Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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