openssh not working since updating to kernel 5.15
Hi,
We updated our kernel from 4.x to 5.15 and for some reason openssh has stopped working
We see that sshd.socket is running but not [email protected] When I run sshd manually I cannot connect Everything else seems fine - no error messages
The only thing I changed was the kernel version but I cant seem to understand how that could affect something like openssh This is how I added opnessh:IMAGE_FEATURES += "ssh-server-openssh package-management tools-debug"
Would apprecaite any help!
Bumped against similar issues with ssh servers (also dropbear) and the problem turned out to be a "lack of entropy".
It takes the ssh server up to several minutes to initialize on an embedded system, because there's no source of randomness and /dev/random just blocks.
When you connect to such a system with SSH, everything is fine, no errors, but the connection won't show any activity for a long time.
You can speed it up by writing some random strings to /dev/random.
A quick workaround is to just add "haveged" to your image. That creates an entropy source based on CPU characteristics, which is questionable from a security point of view. A secure workaround would be to have an actual hardware random number generator on board somewhere.
--
M.
Met vriendelijke groet / kind regards,
Mike Looijmans
System Expert
TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands
T: +31 (0) 499 33 69 69
E: [email protected]
W: www.topic.nl
Please consider the environment before printing this e-mail
Quoted 23 lines · gcblair via lists.yoctoproject.org
Hi,
We updated our kernel from 4.x to 5.15 and for some reason openssh has stopped working
We see that sshd.socket is running but not [email protected] <mailto:[email protected]> When I run sshd manually I cannot connect
Everything else seems fine - no error messagesThe only thing I changed was the kernel version but I cant seem to understand how that could affect something like openssh This is how I added opnessh:
IMAGE_FEATURES+= "ssh-server-openssh package-management tools-debug"Would apprecaite any help!
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59213): https://lists.yoctoproject.org/g/yocto/message/59213
Mute This Topic: https://lists.yoctoproject.org/mt/96932170/3618446
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-