On Thu, Dec 14, 2023 at 04:44:07AM +0000, Kerin Millar wrote:
> On Wed, 13 Dec 2023 23:16:11 -0500
> Zachary Santer <zsan...@gmail.com> wrote:
> 
> > On Wed, Dec 13, 2023 at 11:06 PM Greg Wooledge <g...@wooledge.org> wrote:
> > > Is that on a system that lacks a process manager?  Something like
> > > "systemctl reload ssh" or "service ssh reload" would be preferred from
> > > a system admin POV, on systems that have process managers.
> > I am not super knowledgeable in this kind of stuff, but would that not
> > cause you to lose your SSH connection?
> 
> It would not. Nor would even a restart, owing to the way privilege separation 
> is implemented in sshd(8).

To expand on this: in most process managers used on Linux systems, the
"reload" action sends a SIGHUP or equivalent, if the service supports
it.  The "restart" action stops and then starts the service.

sshd is a special case, with each active connection being managed by a
child of the main daemon.  Stopping and restarting the main daemon does
not cause the existing children to be terminated.  This was true even
before privilege separation was added.

Reply via email to