[Bug 3846] Connect failure with large sshd_config

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Jul 4 12:15:15 AEST 2025


https://bugzilla.mindrot.org/show_bug.cgi?id=3846

Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned-bugs at mindrot.org |djm at mindrot.org
                 CC|                            |djm at mindrot.org,
                   |                            |dtucker at dtucker.net
   Attachment #3889|                            |ok?(dtucker at dtucker.net)
              Flags|                            |

--- Comment #2 from Damien Miller <djm at mindrot.org> ---
Created attachment 3889
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3889&action=edit
Increase max state size to 4MB

There's an implicit limit of 256KB for config+connection state at
present. We can definitely increase it, but there's always going some
limit.

This increases the limit and provides an error message before sshd
daemonises if the config is likely too large. I say "likely" because we
can't be 100% sure whether the config+connection state will exceed the
maximum message size. I've included 64KB of headroom for the other
connection state, typically this is <2KB.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list