5 ms·
I (symmetrically) encrypt my private key and store it in all sorts of places. (I'd rather not lose it) Off Topic: I was so distracted by the apostrophe in "Do'
by emmelaich 15y ago
I (symmetrically) encrypt my private key and store it in all sorts of places. (I'd rather not lose it)
Off Topic: I was so distracted by the apostrophe in "Do's" I spent 5 minutes researching it. Conclusion: I think it's ok.
- alexchamberlain 15y agoAhhhhhhhhhhhh! Use multiple public keys. For each accessing device generate a separate private key and upload your new public keys. I don't know anywhere you can't have multiple public keys. PS Do's should be Dos, but it's quite hard to read.
- dredmorbius 15y agoYour 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.
- emillon 15y ago> I (symmetrically) encrypt my private key That's basically what a passphrase does already.