From 52a3663b73ea10e7a884d2186e377f3f38593665 Mon Sep 17 00:00:00 2001 From: phg Date: Thu, 29 Jan 2026 17:00:49 +0100 Subject: [PATCH] Update user-data for autoinstall: disable password login via ssh and remove root password --- debian/13-trixie/http/user-data | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/13-trixie/http/user-data b/debian/13-trixie/http/user-data index 2d3a7be..44d048d 100644 --- a/debian/13-trixie/http/user-data +++ b/debian/13-trixie/http/user-data @@ -6,7 +6,7 @@ autoinstall: layout: us ssh: install-server: true - allow-pw: true + allow-pw: false disable_root: true ssh_quiet_keygen: true allow_public_ssh_keys: true @@ -26,7 +26,7 @@ autoinstall: users: - name: root groups: [adm, sudo] - lock-passwd: false + lock-passwd: true #Disable password login sudo: ALL=(ALL) NOPASSWD:ALL shell: /bin/bash - passwd: packer + passwd: "" # Remove password