Tested with poky master:1960f6b2ecbb793b40ebc9aed25c8f9cb7884c9a Steps to reproduce: 1) add DISTRO_FEATURES_append = " pam" to local.conf 2) build an openssh image (ex: core-image-sato-sdk-qemux86-64) 3) boot the image (notice message during boot or proceed to step 4) 4) issue: /etc/init.d/sshd restart Notice error: 'Could not load host key: /etc/ssh/ssh_host_ed25519_key NOTE: /etc/ssh/ does not contain this file NOTE: This issue concides with the following 2 scenarios: - when trying to connect to the host system using ssh, the user is prompted to enter a password, which should not be required because the image was built using EXTRA_IMAGE_FEATURES = "debug-tweaks" - If we give the root user a password, the following error is received when trying to connect: 'Write failed: Broken pipe' NOTE: This issue affects core-image-lsb-* images as they have pam enabled by default.
(In reply to comment #0) > Tested with poky master:1960f6b2ecbb793b40ebc9aed25c8f9cb7884c9a > > Steps to reproduce: > 1) add DISTRO_FEATURES_append = " pam" to local.conf > 2) build an openssh image (ex: core-image-sato-sdk-qemux86-64) > 3) boot the image (notice message during boot or proceed to step 4) > 4) issue: /etc/init.d/sshd restart > > Notice error: > 'Could not load host key: /etc/ssh/ssh_host_ed25519_key > I tested the qemu sato-sdk image without pam feature support for 1.6 M4 rc1. The warning message also exists: ################# root@qemumips:~# /etc/init.d/sshd restart Could not load host key: /etc/ssh/ssh_host_ed25519_key Restarting OpenBSD Secure Shell server: sshdstopped /usr/sbin/sshd (pid 508) Could not load host key: /etc/ssh/ssh_host_ed25519_key . ################# > NOTE: /etc/ssh/ does not contain this file > NOTE: This issue concides with the following 2 scenarios: > - when trying to connect to the host system using ssh, the user is prompted > to enter a password, which should not be required because the image was > built using EXTRA_IMAGE_FEATURES = "debug-tweaks" > - If we give the root user a password, the following error is received when > trying to connect: 'Write failed: Broken pipe' > Looks this issue is introduced by commit 40f3e48947883fc18edbdef6e043e53d441afeb1 > NOTE: This issue affects core-image-lsb-* images as they have pam enabled by > default.
Actually 10cdd66fe800cffe3f2cbf5c95550b4f7902a311 broke the no-passwd login. FWIW 40f3e48947883fc18edbdef6e043e53d441afeb1 is not a valid oe-core commit.
Status update: - changed name to represent only the login error when using "pam" issue - opened bug 5983 for the openssh "Could not load host key" issue - reverting poky commit 40f3e48947883fc18edbdef6e043e53d441afeb1 "solves" the issue but is not a fix. That will simply disable pam with openssh. We need a patch that correctly enables this, or give up completely on this feature. NOTE: If a fast fix is not possible, we should revert this patch in order to allow us to test lsb images over ssh.
Fix merged to master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e2d24f517206f6b8d9767c5d6d24795be5969a96 (Koen: 40f3e48947883fc18edbdef6e043e53d441afeb1 is a valid poky commit, but you already knew that...)
Verified in poky master:8210928e847fda7dbc145a94372b0beaf653a4f9