From 21e3fb185c095d311f327416ce76e76fa99a971d Mon Sep 17 00:00:00 2001 From: Tim Miller Date: Mon, 8 Apr 2013 18:57:00 -0700 Subject: [PATCH] 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 --- elements/ubuntu/first-boot.d/01-ssh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 elements/ubuntu/first-boot.d/01-ssh diff --git a/elements/ubuntu/first-boot.d/01-ssh b/elements/ubuntu/first-boot.d/01-ssh new file mode 100755 index 00000000..08f52c74 --- /dev/null +++ b/elements/ubuntu/first-boot.d/01-ssh @@ -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