I am working on a Yocto-based Linux. I have Dropbear SSH installed. If debug-tweaks is included in IMAGE-FEATURES, I can correctly login via SSH without password. Now, I want to setup a password-based login. So I removed the debug tweaks and added the following lines to my recipe:
inherit extrausers
EXTRA_USERS_PARAMS = "usermod -P mypassword root;"
Now when I try to login via SSH I get the following error:
root@IP: Permission denied (publickey,password).
What is the problem? I checked that the password is correct.
I created a simple poky build with a simple meta-test layer that appends to core-image-minimal this:
I started runqemu after the build finished and this is what I figured out:
At first I tried connecting to ssh and it actually denied me.
By default dropbear disables root login, you can find the default file:
its content:
So, I removed the "-w" option and I ran:
I got a successful login on dropbear ssh server.
In addition, you can add this automatically to your custom layer:
dropbear_%.bbappend: