sshd en figlet config

This commit is contained in:
2023-04-25 14:00:53 +02:00
parent b0653f0f11
commit bcfca740a1

View File

@@ -268,12 +268,12 @@ d-i preseed/late_command string \
in-target chmod 0644 /root/.ssh/authorized_keys
d-i preseed/late_command string \
in-target sed -i '/*PasswordAuthentication*/c\PasswordAuthentication no' /etc/ssh/sshd_config; \
in-target sed -i '/*PasswordAuthentication*/c\PasswordAuthentication no' /etc/ssh/sshd_config; \
sed -i '/*PasswordAuthentication*/c\PasswordAuthentication no' /target/etc/ssh/sshd_config; \
sed -i '/*PasswordAuthentication*/c\PasswordAuthentication no' /target/etc/ssh/sshd_config; \
in-target systemctl enable --now sshd
d-i preseed/late_command string \
in-target cat /etc/hostname | figlet > /etc/motd
in-target cat /etc/hostname | /usr/bin/figlet > /etc/motd
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true