This commit is contained in:
Pin
2023-01-10 21:50:56 -05:00
parent a427f46b36
commit 53c54dd668

View File

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