Hi,
I am trying to prepare each installed host for Ansible support, however for some reason it doesn't work for me. In my preseed file I have late_command option:
It is downloading pub key file from server, but for some reason won't place it in proper place (/root/.ssh/authorized_keys). Any ideas why?
I am trying to prepare each installed host for Ansible support, however for some reason it doesn't work for me. In my preseed file I have late_command option:
Code:
d-i preseed/late_command string \
in-target echo -ne "/target/root/.ssh/ed25519" | ssh-keygen -P '' -o -a 100 -t ed25519 ; \
in-target wget -O /tmp/id_ed25519.pub http://server.domain.com/id_ed25519.pub ; \
in-target cat /tmp/id_ed25519.pub >> /target/root/.ssh/authorized_keys ; \
in-target apt-install bash ; \
in-target chsh -s /bin/bash