After removing the hostkeys from /etc/ssh and generating a template, cloud-init generates new hostkeys according to /var/log/cloud-init-output.log but the keys are not written to /etc/ssh/.
Because there are no hostkeys, ssh.service does not start.
I can get around this by using the noVNC shell and running
sudo dpkg-reconfigure openssh-server
but that is just a work-around and prevents remote logins until new keys are generated and the ssh.service is started.
Is this a bug or is there a solution?
Because there are no hostkeys, ssh.service does not start.
I can get around this by using the noVNC shell and running
sudo dpkg-reconfigure openssh-server
but that is just a work-around and prevents remote logins until new keys are generated and the ssh.service is started.
Is this a bug or is there a solution?