How to force recreation of the SSH host keys after the next boot of the appliance?

Replies (2)

Regenerated during install or firstboot

Reply 1
SSH keys are regenerated either during installation (ISO), or on firstboot (VM/EC2) using this script:
/usr/lib/live-installer.d/20regen-sshkeys
Note that the SSH daemon needs to be restarted for changes to take effect:
/etc/init.d/ssh restart

Perfect

Reply 2

Thanks for your reply.