A self-hosting journal. Small machines, small services, kept tidy.

SSH keys: fewer doors, better locks

September 19, 2026 · security

My servers stopped accepting passwords a long time ago. The background noise of the internet — automated attempts knocking on every SSH port, all day — drops to nothing the moment there is no password to guess. What remains is a short list of keys, and keeping that list honest is a small, regular chore.

One key per device

Each laptop and phone gets its own key, named after the device in the comment field. When a device is sold, lost, or retired, exactly one line leaves authorized_keys, and nothing else changes. A single shared key would mean re-keying everything at the worst possible moment.

The yearly afternoon

Once a year I open every authorized_keys file and ask of each line: do I still own this device? The first time I did this I found keys for two laptops I had given away. Nothing had happened — probably — but "probably" is not a standard I want for the front door.

Root login stays off; an ordinary account plus sudo means an extra step for me and a longer road for anyone else. None of this is exotic. It is the digital equivalent of knowing how many copies of your house key exist.