[neon/neon/livecd-rootfs/Neon/release] live-build/ubuntu-cpc/hooks.d/chroot: Revert "fix: don't modify ssh_config for ubuntu-cpc projects (LP:1968873)"

Thomas Bechtold null at kde.org
Tue Jul 26 12:23:08 BST 2022


Git commit 7ed77a5e64c3f52213f5e8769120acc434328979 by Thomas Bechtold.
Committed on 11/07/2022 at 12:14.
Pushed by jriddell into branch 'Neon/release'.

Revert "fix: don't modify ssh_config for ubuntu-cpc projects (LP:1968873)"

This change triggered a bug in cloud-init (see LP:1968873). cloud-init
does not recongnize sshd options set in /etc/ssh/sshd_config.d/ and
cloud-init modifies directly /etc/ssh/sshd_config which gets then
overwritten by settings from /etc/ssh/sshd_config.d/ .

This reverts commit 9a8d7a6e4d7a0b50024df6b92e0711a2f42454a0.

M  +1    -3    live-build/ubuntu-cpc/hooks.d/chroot/052-ssh_authentication.chroot

https://invent.kde.org/neon/neon/livecd-rootfs/commit/7ed77a5e64c3f52213f5e8769120acc434328979

diff --git a/live-build/ubuntu-cpc/hooks.d/chroot/052-ssh_authentication.chroot b/live-build/ubuntu-cpc/hooks.d/chroot/052-ssh_authentication.chroot
index 0218a85f..6b0a34ea 100755
--- a/live-build/ubuntu-cpc/hooks.d/chroot/052-ssh_authentication.chroot
+++ b/live-build/ubuntu-cpc/hooks.d/chroot/052-ssh_authentication.chroot
@@ -1,5 +1,3 @@
 #!/bin/bash
 
-cat << EOF >> "/etc/ssh/sshd_config.d/10-cloudimg-settings.conf"
-PasswordAuthentication no
-EOF
+sed -i "s|#PasswordAuthentication yes|PasswordAuthentication no|g" /etc/ssh/sshd_config



More information about the Neon-commits mailing list