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

Every time I restart my computer I have to ssh-add my ssh key. I already have ssh key added on github. Does anyone know how to fix it? Thanks.

share|improve this question

migrated from Nov 7 '12 at 7:22

This question came from our site for professional and enthusiast programmers.

You could create an alias in your ssh config. For example:

            IdentityFile ~/.ssh/id_rsa_example 

Make sure your git remote references the ssh alias "". The "IdentityFile" directive should point to the path where you plan on storing your private key. This tells ssh which key to associate with the alias.

share|improve this answer
is there an example for that? I am fairly new to github. I don't even know where to find the ssh config. Ty for your reply. – winston kyu Nov 6 '12 at 23:23
By default only the global config exists. Generally people create a user ssh config in their home directory like "~/.ssh/config". Here are several example configs. – Ziaunys Nov 7 '12 at 1:26

You must log in to answer this question.