Bugzilla – Bug 1172549
openssh: add socket file too?
Last modified: 2022-01-11 08:47:53 UTC
How about adding a socket activation unit in addition to the service file for ssh? Wondering about that in the context of MicroOS. On slow ARM devices, openssh seems to need a noticable amount of cpu to launch at boot and may not be needed hanging around most of the time anyways. The device's purpose mostly would be reading sensors or such, it typically won't serve user logins. So having sshd launched on demand via socket seems to be more resource friendly there.
Fedora has a solution for that. Socket or service can be used there: https://src.fedoraproject.org/rpms/openssh/tree/master Also their approach to calling keygen looks smart.
Thanks for suggesting it. Do you know if we need to patch any code for this? I'm guessing no?
I'm not into openssh but from a brief look at the Fedora patches it seems like no special one required.