Comment 5 for bug 1645555

Revision history for this message
Paul NGUYEN THANH (paul.nguyen-thanh) wrote :

Everything looks OK in /boot/initrd.img-4.15.0-*

etc/group
etc/passwd
root-xxxxxx
root-xxxxxx/.ssh
root-xxxxxx/.ssh/authorized_keys

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????