6 ms·
In a somewhat related vein: it would be really fantastic if Github allowed the same SSH key (in my case: a Yubikey-resident SSH key) on multiple accounts; we us
by tptacek 7y ago
In a somewhat related vein: it would be really fantastic if Github allowed the same SSH key (in my case: a Yubikey-resident SSH key) on multiple accounts; we use separate accounts for different clients, and Github's refusal to allow an SSH key to be used on multiple accounts means I can't use Yubikey SSH keys for those.
I get that this is a niche-y concern. :)
- deleted 7y ago[deleted]
- chrismorgan 7y agoThat would require the ability to specify the username somehow, would it not, e.g. using tptacek@github.com:… and example@github.com:… instead of git@github.com:…?
- CameronNemo 7y agoYeah something tells me this is a deep change related to how they manage identity. GitLab has the same issue.
- DangitBobby 7y agoBitbucket allows you to use your SSH key on as many projects as you like, IIRC. I actually really like Bitbucket as a platform, I wish more people would use it.
- andrewshadura 7y agoThey were a great platform, but they aren't any longer.
- DangitBobby 7y agoGo on...
- mbesto 7y ago> we use separate accounts for different clients Why though?
- tptacek 7y agoBecause it would be crazy to link all our different clients to our personal Github accounts, or really to any single Github account.
- DangitBobby 7y agoGitHub recommends using a single account, according to their website[0]... I get that it could be seen as a security concern, but I don't know if it's crazy. I only accept a physical key as 2FA, and you can revoke SSH keys from your account if your development machine is ever stolen or missing. 0. https://github.community/t5/Support-Protips/Using-one-account-for-all-your-projects/ba-p/5509 https://github.community/t5/Support-Protips/Using-one-accoun...
- tptacek 7y agoGithub is, pretty clearly, wrong about this.
- tialaramex 7y agoIf that would be "crazy" then I don't really see why you're so enthusiastic about using the same key for these "different" accounts. I get how you can make it arguably safe, but it just seems like a needless risk exactly like a single shared account.
- mbesto 7y agoDon't you find it a little crazy from a security perspective that you're using your machines for both personal and work purposes?
- tptacek 7y agoWe're not; "personal" was just easier to write in the moment than "single long term durable account associated with Latacora".
- est31 7y agoI guess they need that property so that they can associate a push to a specific account instead of just an ssh key that can be associated to multiple accounts.
- DangitBobby 7y agoIf they enforce a policy that key-user pairs are unique per project, then they know who to blame for any push.
- sowbug 7y agoBack 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.