From 2a5bfe2f712c38e1f6bd6f4a5ab02130e7a69e9e Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Mon, 15 Jul 2024 17:42:03 +0200 Subject: [PATCH] [debian12] fix: permit root login --- debian12/http/preseed.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian12/http/preseed.cfg b/debian12/http/preseed.cfg index 0d6147d..3525614 100644 --- a/debian12/http/preseed.cfg +++ b/debian12/http/preseed.cfg @@ -63,4 +63,4 @@ d-i cdrom-detect/eject boolean true # remove installation-report d-i preseed/late_command string in-target apt-get -y purge installation-report; \ - sed -i 's/#\?\(PermitRootLogin\s*\).*$/\1 yes/' /etc/ssh/sshd_config + sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /target/etc/ssh/sshd_config;