diskimage-builder/elements/ubuntu/first-boot.d/01-ssh
Tim Miller 21e3fb185c 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
2013-04-09 11:18:02 -07:00

5 lines
188 B
Bash
Executable File

#!/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