OpenSSH server doesn't log client disconnect without SSH_MSG_DISCONNECT

Damien Miller djm at mindrot.org
Mon Jun 17 18:50:12 AEST 2024


On Fri, 14 Jun 2024, Opty wrote:

> On Tue, Jun 11, 2024 at 1:24 PM Opty <opty77 at gmail.com> wrote:
> > On Wed, Jun 5, 2024 at 3:14 PM Opty <opty77 at gmail.com> wrote:
> > > On Wed, Jun 5, 2024 at 6:03 AM Damien Miller <djm at mindrot.org> wrote:
> > > > We need to decide whether to promote these log messages to INFO.
> > > >
> > > > [...]
> > >
> > > I will wait for the final verdict then. Thanks for letting me know.
> >
> > I will also try 'LogVerbose serverloop.c:process_input():*' soon which
> > might do here.
> 
> A bit chatty but works:
> 
> 2024-06-14T20:01:54.084176+02:00 qeporkak sshd 10012 - - Accepted
> keyboard-interactive/pam for opty from 127.0.0.1 port 60547 ssh2
> 2024-06-14T20:01:54.090845+02:00 qeporkak elogind-daemon 1116 - - New
> session 2 of user opty.
> 2024-06-14T20:01:55.125617+02:00 qeporkak sshd 10027 - -
> serverloop.c:process_input():290 (pid=10027): Connection closed by
> 127.0.0.1 port 60547
> 2024-06-14T20:01:55.131298+02:00 qeporkak elogind-daemon 1116 - -
> Removed session 2.

FYI https://github.com/openssh/openssh-portable/commit/5603befe11c946

will be in the next release, due soon.

-d


More information about the openssh-unix-dev mailing list