Forum: 

How to recreate SSH Host Keys?

Reiner Müller's picture

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

Alon Swartz's picture

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
Reiner Müller's picture

Thanks for your reply.

Post new comment