Hi,
I noticed a disturbing/surprising behavior of Proxmox when creating linked/full clones from container templates: SSH host keys are not regenerated during cloning process. Isn't this something fundamental that would make sense as functionality? Maybe I missed something.
I verified both with a template already containing host keys (=the clone has still the same keys) as well as a template where I deleted all host keys before the conversion (=the clone ends up without keys too). In contrast, Proxmox does generate host keys when creating a new container from a built-in tgz template. Could this procedure be adapted to also cover template cloning (linked, full)?
And yes, I could prepare my container template so a systemd unit runs ssh-keygen -A inside of the container before launching sshd (e.g. Debian does not do this by default because of entropy concerns). Yet it might make more sense for Proxmox to properly take care of that instead?
Regards
I noticed a disturbing/surprising behavior of Proxmox when creating linked/full clones from container templates: SSH host keys are not regenerated during cloning process. Isn't this something fundamental that would make sense as functionality? Maybe I missed something.
I verified both with a template already containing host keys (=the clone has still the same keys) as well as a template where I deleted all host keys before the conversion (=the clone ends up without keys too). In contrast, Proxmox does generate host keys when creating a new container from a built-in tgz template. Could this procedure be adapted to also cover template cloning (linked, full)?
And yes, I could prepare my container template so a systemd unit runs ssh-keygen -A inside of the container before launching sshd (e.g. Debian does not do this by default because of entropy concerns). Yet it might make more sense for Proxmox to properly take care of that instead?
Regards