← sources

How do you handle SSH host keys on servers that get rebuilt a lot?

source: reddit (reddit:sysadmin)published 2026-10-20 01:16ingested 2026-10-21 02:40

retained text

A rebuilt VM usually comes back with a new host key, so anything with strict checking refuses to connect, including monitoring jobs nobody is watching. But accepting a changed key automatically means you'd never notice a man-in-the-middle. Do you sign host keys with an SSH CA, publish them from provisioning, or alert and have a person accept the change?

document fetched 2026-10-21 00:36 · canonical https://reddit.com/r/sysadmin/comments/1xaeujc/how_do_you_handle_ssh_host_keys_on_servers_that