On 2025-01-24 12:08, Colin Watson wrote: > You can do this with preseed/late_command > (https://www.debian.org/releases/bookworm/amd64/apbs05.en.html#preseed-hooks, > and see https://www.debian.org/releases/bookworm/amd64/apb.en.html for > general advice on preseeding if you haven't used it before). Something > like this should work: > > d-i preseed/late_command string mkdir -p /target/root/.ssh; echo 'ssh-rsa > ...' >/target/root/.ssh/authorized_keys
An easy way to do that with preseeding, assuming your setup has network connectivity, is adding the string Colin mentioned to a file such as https://example.org/preseed.txt and then appending the following to your kernel arguments when booting the installer: preseed/url=https://example.org/preseed.txt