This commit is contained in:
Pin
2023-01-10 23:47:52 -05:00
parent 1cebb3b95e
commit 30fb512164

View File

@@ -88,7 +88,7 @@ d-i preseed/late_command string \
in-target sh -c 'sed -i "s/^#PermitRootLogin.*\$/PermitRootLogin yes/g" /etc/ssh/sshd_config' ; \
in-target mkdir -p /home/redteam/.ssh ; \
echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIanH253TBKhhuqoIXEEjAb1h8teaff+gzWQrG0hHecn' >/target/home/redteam/.ssh/authorized_keys ; \
in-target chown -R redteam:reteam /home/redteam/.ssh ; \
in-target chown -R redteam:redteam /home/redteam/.ssh ; \
in-target sh -c 'systemctl enable ssh' ;
d-i finish-install/reboot_in_progress note