4 ms·
Your private key isn't that valuable. It's not like, say, a GPG key which you've had widely signed (there's no SSH "web of trust"). Such a key can be useful a
by dredmorbius 15y ago
Your private key isn't that valuable. It's not like, say, a GPG key which you've had widely signed (there's no SSH "web of trust"). Such a key can be useful as it ages (though there are trade-offs in security -- risk of it being compromised also rises with time). You also don't lose access to previously encrypted data by losing an old SSH key, as you would with a GPG key.
So long as you can get new public keys loaded onto the systems you need to access, you're just fine generating a new keypair.
- StavrosK 15y agoThe problem is that I have 20-30 servers (I don't even know how many or which) that I have access to, and many times I'm the only one who can log in to them. If I lose my SSH key, I have to go around all these boxes changing keys, and many times there's nobody to let me in.
- jpitz 15y agoThats a problem you have a lot better chance of solving before you lose an SSH key than after.
- dredmorbius 15y agoThat's a case where having multiple keys (for multiple point-of-origin systems) which can access those hosts would be a Really Good Thing. Distributed shell (dsh) and git can be helpful in keeping at least portions of things synched up. You can also mimic dsh with your own hostlist(s) and iterated tasks (for host in $( cat hostlist ); do echo "$host"; ssh $host 'do stuff'; done) ... or the like. If you're managing these boxes as part of a team, having a secondary/tertiary persons with access (or more) can also help. There's the use of password safes to keep track of access credentials as well (another hassle to keep synchronized, of course).
- emmelaich 15y agoAh yes, that should have read 'keys', plural. I do this with my GPG key too, mainly.