cannot login via ssh when using dropbear in initramfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dropbear (Debian) |
Fix Released
|
Unknown
|
|||
dropbear (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Won't Fix
|
Undecided
|
Unassigned | ||
Quantal |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Impact:
Multiarch installations of dropbear end up with broken initramfs images (without libnss*), to which users can't connect as expected.
Detailed Description
The current dropbear is broken when trying to connect to a computer with encrypted harddrive from a remote computer, to input the decrypt password, as explained, for example, here:
http://
Test case:
After installing dropbear in a multiarch system, it should be possible to generate a new initramfs image, for example by running update-initramfs -u, without issuing any errors.
Regression potential:
The patch supplied looks for the correct directory where the files are located, if there was a problem with this search, it might end up not copying the files, as it happens now in multiarch. So, worst case scenario: it still doesn't work, no extra harm done.
----
Original description:
I did a fresh install.
I use system encryption with LUKS (LVM-container inside encrypted parition).
I installed dropbear.
copied the ssh-key from /etc/initramfs-
When booting, the process stops to prompt for the password.
dropbear starts correctly, but when trying to connect I get prompted for a password.
I also modified the initrd, so that dropbear would display some debug-output (-E -F)
There I could see
[...] login attempt for nonexistent user from [...]
everytime I tried to login.
I tried this on ubuntu-11.04-server and ubuntu 10.04-server (both amd64).
It worked perfectly on 10.04
Related branches
tags: | added: multiarch |
Changed in dropbear (Debian): | |
status: | Unknown → New |
Changed in dropbear (Debian): | |
status: | New → Fix Released |
Changed in dropbear (Debian): | |
status: | Fix Released → New |
Changed in dropbear (Debian): | |
status: | New → Fix Released |
description: | updated |
Same issue for me. 64-linux- gnu/libnss- files* in ramdisk (i'm on a 64bits system) initramfs- tools/scripts/ init-premount/ dropbear is a work-around
Reason: missing /lib/x86_
Adding correct cp in /usr/share/
Dropbear scripts and docs not up to date, many other files are missing (/etc/shadow, /etc/nsswitch.conf, /etc/group...)