preseed
This commit is contained in:
@@ -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:reteam /home/redteam/.ssh ; \
|
||||
in-target sh -c 'systemctl enable ssh' ;
|
||||
d-i finish-install/reboot_in_progress note
|
||||
|
||||
|
||||
Reference in New Issue
Block a user