NB: root-xxxxxx/.ssh/autorized_keys comes from /etc/dropbear-initramfs/authorized_keys must be in 'dropbear' format, not 'openssh' format, then use dropbearkey or dropbearconvert, and update-initramfs to recreate your initrd image.
But it seems that root-xxxxxx/.ssh/authorized_keys isn't expanded properly from initrd !!!???
Because:
First, I worked around with /usr/share/initramfs-tools/hooks/dropbear script to create several copies of this authorized_keys in $home and $DESTDIR, then in BusyBox, on (initramfs) prompt, I can find one in / from $DESTDIR, one in /root-xxxxxx/ from $home, but none in /root-xxxxxx/.ssh/ !!!???
Second, I'm booting thru PXE, and iPXE, with an HTTP server, then I have the ability to download authorized_keys, or to move other copies that I stressed above, into /root-xxxxxx/.ssh/, and can, then, log in...
Why is not expanded properly even it is well located in the initrd image????
Everything looks OK in /boot/initrd. img-4.15. 0-*
etc/group .ssh/authorized _keys
etc/passwd
root-xxxxxx
root-xxxxxx/.ssh
root-xxxxxx/
NB: root-xxxxxx/ .ssh/autorized_ keys comes from /etc/dropbear- initramfs/ authorized_ keys must be in 'dropbear' format, not 'openssh' format, then use dropbearkey or dropbearconvert, and update-initramfs to recreate your initrd image.
But it seems that root-xxxxxx/ .ssh/authorized _keys isn't expanded properly from initrd !!!???
Because:
First, I worked around with /usr/share/ initramfs- tools/hooks/ dropbear script to create several copies of this authorized_keys in $home and $DESTDIR, then in BusyBox, on (initramfs) prompt, I can find one in / from $DESTDIR, one in /root-xxxxxx/ from $home, but none in /root-xxxxxx/.ssh/ !!!???
Second, I'm booting thru PXE, and iPXE, with an HTTP server, then I have the ability to download authorized_keys, or to move other copies that I stressed above, into /root-xxxxxx/.ssh/, and can, then, log in...
Why is not expanded properly even it is well located in the initrd image????