Rotate keys on a calendar, not on a panic
SSH keys, like passwords, age. Quarterly rotation is the right cadence for a personal fleet — frequent enough to limit blast radius from undiscovered compromise, infrequent enough to not be daily ops toil. The procedure is mechanical once you've done it once.
The fleet-wide rotation procedure
- Generate a new key on each device with a fresh comment.
- Deploy the new public key to every server's
authorized_keysalongside the old one. - Update each device's
~/.ssh/configto use the new key. - Test exhaustively from each device.
- Remove the old public key from every server.
- Delete the old private key from each device.
Steps 2 and 5 are the parallelizable parts — that's where your fleet helpers (Track 7) earn their keep.