Generate ssh hostkeys on first-boot.
cloud-init is expected to generate unique hostkeys on first boot, but sometimes it doesn't. This change ensures that hostkeys are always generated. This change should be removed if the cloud-init problem is solved. Change-Id: I7d7e05fbd12727992cf1aebec547ae0488e002ff
This commit is contained in:
parent
24c89932be
commit
21e3fb185c
4
elements/ubuntu/first-boot.d/01-ssh
Executable file
4
elements/ubuntu/first-boot.d/01-ssh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# NOTE: this file should be removed once cloud-init is properly generating hostkeys
|
||||||
|
# https://bugs.launchpad.net/diskimage-builder/+bug/1124593
|
||||||
|
dpkg-reconfigure openssh-server
|
Loading…
Reference in New Issue
Block a user