Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .