wdog / debian_libvirt_terraform

0 stars 0 forks source link

SSH public key not working #1

Open wdog opened 1 year ago

wdog commented 1 year ago

check preseed.cfg

d-i preseed/late_command string \
  mkdir -p -m 700 /target/root/.ssh; \
  cat id_rsa.pub > /target/root/.ssh/authorized_keys; \
  in-target chown --recursive root:root /root/.ssh; \
  in-target chmod 0644 /root/.ssh/authorized_keys; \
  in-target update-alternatives --set editor /usr/bin/vim.basic; \

and check what is inside the VM

wdog commented 1 year ago

the directory .ssh does not exists

todo if possibile: