Skip to contentSkip to conversation

Dropbear SSH and empty root password

DISCUSSION Gary Thomas 2 participants 2 messages Feb 17, 2011

lore
Share & tools
lore
#0 lore raw

The default images have no password for root. This used to work fine with the dropbear SSH server, but no longer does.

I see that the recipe has this line:
file://allow-nopw.patch;apply=no

Any comment on why this was disabled? I think the history of this change was lost in the great packages reshuffle.

Query: if I wanted to restore this behaviour, could I just have a .bbappend file with that line as apply=yes?

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw
Quoted 8 lines · Gary Thomas

The default images have no password for root.  This used to work fine with the dropbear SSH server, but no longer does.

I see that the recipe has this line:
 file://allow-nopw.patch;apply=no

Any comment on why this was disabled?  I think the history of this change was lost in the great packages reshuffle.

if you see in dropbear.inc a bit below you will see this

do_configure_prepend() {
if [ "x${DISTRO}" != "xfamiliar" -a "${DISTRO_TYPE}" = "debug" ]; then
oenote "WARNING: applying allow-nopw.patch which
allows password-less logins!"

                patch -p1 < ${WORKDIR}/allow-nopw.patch
        fi
}

so if your distro_type is debug then you will get it applied automatically.

Quoted 14 lines

Query: if I wanted to restore this behaviour, could I just have a .bbappend file with that line as apply=yes?

--
------------------------------------------------------------
Gary Thomas                 |  Consulting for the MLB Associates              |    Embedded world
------------------------------------------------------------
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky