Skip to content

Commit

Permalink
Increase MaxConnections and MaxStartup
Browse files Browse the repository at this point in the history
  • Loading branch information
bdevcich committed Aug 22, 2024
1 parent 042f4c6 commit 086fba1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ COPY --from=builder /deps/dtcmp/lib/ /usr

COPY --from=builder /mfu/ /usr

# Configure the ssh server to allow 512 unsecured connections that occur before authentication is
# completed.
RUN sed -i "s/[ #]\(.*MaxSessions\).*/\1 512/g" /etc/ssh/sshd_config \
&& sed -i "s/[ #]\(.*MaxStartups\).*/\1 512:0:512/g" /etc/ssh/sshd_config

###############################################################################
# Pull in the debugging symbols on top of production image
FROM production AS debug
Expand Down

0 comments on commit 086fba1

Please sign in to comment.