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;