From 68760e58f99c574ece105483c665eb93f07fd819 Mon Sep 17 00:00:00 2001 From: AJ Jordan Date: Wed, 2 Oct 2024 04:18:58 -0400 Subject: [PATCH] Properly configure SSH from scratch dpkg-reconfigure clearly is designed for interactive use. Cloud images have SSH preinstalled and keys are generated by cloud-init, but Subiquity installs the `openssh-server` package if selected in the installer. This seems like reasonable behavior to emulate in a world where we aren't triggering cloud-init behavior. See https://github.com/canonical/subiquity/blob/1c4c99562ef678da5fe06cd810a4268d9f63fda4/subiquity/models/ssh.py#L34 --- build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 760da11..d183bde 100755 --- a/build.sh +++ b/build.sh @@ -53,13 +53,14 @@ EOF # Generate SSH keys on first boot cat > $mnt/etc/systemd/system/ssh-hostkey-generate.service <