[pve-devel] [RFC container v2 2/3] setup: base: remove existing ssh host keys
Thomas Lamprecht
t.lamprecht at proxmox.com
Thu Jul 17 02:27:04 CEST 2025
Am 04.07.25 um 20:23 schrieb Daniel Kral:
> Remove existing SSH host keys after container creation to prevent
> multiple containers sharing the same SSH host keys, especially those
> which are not overwritten/generated by rewrite_ssh_host_keys() later.
>
> This is called in the Base's post_create_hook(...) to prevent unwanted
> removal for certain types of containers, e.g., unmanaged containers.
>
Does this also remove host keys on backup restore? If, this is probably
a bit to intrusive. For clone/restore we might couple it with the "unique"
flag, just as an (not so thought out) idea.
More information about the pve-devel
mailing list