3 ms·
Back in 2011 I posted a similar question to Quora. I've since deleted my Quora account, but here's the email notification I got about an answer: === New answe
by sowbug 7y ago
Back in 2011 I posted a similar question to Quora. I've since deleted my Quora account, but here's the email notification I got about an answer:
===
New answer to "Why can't I add my public SSH key to more than one account on GitHub?"
Andrew Naoum:
Because when you push via SSH to "git@github.com", it needs to uniquely identify who you are given the SSH public-key.
If you had the same key associated with multiple accounts, it wouldn't know which user to login as.
===
Perhaps if GitHub changed the SSH user to be something like username-projectname@github.com, then SSH could authenticate you with a single key but preserve the other information needed to b narrow down to a project or organization.