From 7aa606f16818ac328e8f7e892dcfc283a6f5d54a Mon Sep 17 00:00:00 2001 From: Jacob Weinstock Date: Wed, 21 Feb 2024 07:25:58 -0700 Subject: [PATCH] Enable password auth differently: The previous sed command wasnt working. The new ubuntu cloud image seems to write a different file for ssh settings. This fixes the issue of ssh not allowing password logins. Signed-off-by: Jacob Weinstock --- vagrant/template.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vagrant/template.yaml b/vagrant/template.yaml index 89e76985..17369ba9 100644 --- a/vagrant/template.yaml +++ b/vagrant/template.yaml @@ -57,7 +57,7 @@ spec: FS_TYPE: ext4 CHROOT: y DEFAULT_INTERPRETER: "/bin/sh -c" - CMD_LINE: "ssh-keygen -A; systemctl enable ssh.service; sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config" + CMD_LINE: "ssh-keygen -A; systemctl enable ssh.service; echo 'PasswordAuthentication yes' > /etc/ssh/sshd_config.d/60-cloudimg-settings.conf" - name: "disable-apparmor" image: quay.io/tinkerbell-actions/cexec:v1.0.0 timeout: 90