Update preseed.cfg

This commit is contained in:
Nicola Belluti 2025-11-26 16:36:47 +00:00
parent 361378efe5
commit ed104b6172

View file

@ -249,8 +249,8 @@ d-i debian-installer/exit/poweroff boolean true
#
# - Aggiungi la possibilità di entrare in SSH con l'account di root e la sua password
d-i preseed/late_command string \
echo "" >> /target/etc/ssh/sshd_config \
echo "" >> /target/etc/ssh/sshd_config \
echo "# BEGIN - Remove this block with Ansible as soon as you have SSH access" >> /target/etc/ssh/sshd_config \
echo "PermitRootLogin yes" >> /target/etc/ssh/sshd_config \
echo "# END - Remove this block with Ansible as soon as you have SSH access" >> /target/etc/ssh/sshd_config
echo "" >> /target/etc/ssh/sshd_config; \
echo "" >> /target/etc/ssh/sshd_config; \
echo "# BEGIN - Remove this block with Ansible as soon as you have SSH access" >> /target/etc/ssh/sshd_config; \
echo "PermitRootLogin yes" >> /target/etc/ssh/sshd_config; \
echo "# END - Remove this block with Ansible as soon as you have SSH access" >> /target/etc/ssh/sshd_config;