[systemd-devel] Query on sshd.socket sshd.service approaches

Shreenidhi Shedi shreenidhi.shedi at broadcom.com
Wed Mar 6 05:41:02 UTC 2024


Hi All,

What is the rationale behind using sshd.socket other than not keeping sshd
daemon running always and reducing memory consumption?
With sshd.socket, systemd does a fork/exec on each connection which is
expensive and with the sshd.service approach server will just connect with
the client which is less expensive and faster compared to sshd.socket.

And if there are issues in unit files like in
https://github.com/systemd/systemd/issues/29897 it will make the system
unusable.

I want to understand this better and know more on the history behind these
design decisions. Thanks.

-- 
Shedi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240306/b67023f6/attachment.htm>


More information about the systemd-devel mailing list