3 ms·
The 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
by StavrosK 15y ago
The 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).