From 4de7354c45869b4b60282e003b6174d07cb554d7 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Mon, 23 May 2022 19:11:51 +0200 Subject: [PATCH] Fix ssh keys for x86 --- preseed.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/preseed.cfg b/preseed.cfg index a48ab27..c6f08a9 100644 --- a/preseed.cfg +++ b/preseed.cfg @@ -469,5 +469,6 @@ d-i finish-install/reboot_in_progress note d-i preseed/late_command string apt-install zsh; in-target \ sudo -u creator mkdir -p -m 700 /home/creator/.ssh; \ sudo -u creator install -m 600 /home/creator/.ssh/authorized_keys; \ - sudo -u creator echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDYsz4jdyzf9UcJ8eEavVmi+DNYE3ioeJBfTlVMw7Vsb tanguy@Diogenes" > /home/creator/.ssh/authorized_keys; + sudo -u creator echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDYsz4jdyzf9UcJ8eEavVmi+DNYE3ioeJBfTlVMw7Vsb tanguy@Diogenes" > /home/creator/.ssh/authorized_keys; \ + sed -i -E 's/#?PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config;