Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. 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 can see that GitHub allows you to have multiple mail account and associate every organization you are part of with a different address.

Can this be done also for SSH keys?

What I would like to do is having two different keys, one to push on my private repository, another to push on an organization repository.

share|improve this question
I definitely need to know this too :) – Stephen Orr Apr 30 '13 at 13:05
up vote 1 down vote accepted

On Github, you can add several ssh keys to your account, simply go to your profile/ssh and click "Add SSH key".

But as far as I know the permissions for a repository is associated to the account, not the key. So if you are trying to limit the damage done by someone stealing your key, I believe you will need to create two accounts.

share|improve this answer
After thinking on this issue, I came to the same conclusion. Hence accept. Besides, the authentication is per user, so once a user is authenticated, there's no way of denying access to a certain directory basing on the used ssh key. At least, intuitively. – Dacav May 2 '13 at 10:13

Your Answer


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.