by ybroze · 10y ago · 0 comments
I don't see how this makes sense. Assuming your private keys all live on the same machine (presumably with 0600 in /.ssh), then if your machine is stolen and your user password compromised, access to one private key is the same as access to all of them.
But then again, if you don't trust the remote to know who you are, then why do you have an identity with them? I mean, the remote service is SUPPOSED to know who you are. That's kinda the point.
GitHub should know I'm the user who has access to push to repos a, b, and c.
AWS should know I'm the user who has access to update code or data at places d, e, and f.
But neither needs to know my full identity, or about each other, at all.
Just imagine that somebody can request from you the ssh key to just one of the services you access. Then he gets the access to all of them.
http://www.theatlantic.com/magazine/archive/2002/09/a-primer...
I was actually almost involved in one of such cases, I haven't invented it out of the thin air. If you can't imagine such a scenario happening to you, you're of course lucky and you'd like to use one private key for everything. But the scenario is real.
The real goal is privacy, given that your public key is available on github and sent via plaintext when authenticating.
There are some added benefits to managing separate ssh keys for each server: it forces you to use tools to manage your keys, which make it easier to mitigate disaster when the time comes to rotate your keys due to compromise.