From f75cb90092aa89f09b8b95d6a566bc39bf526809 Mon Sep 17 00:00:00 2001 From: Blake Devcich Date: Thu, 22 Aug 2024 13:12:19 -0500 Subject: [PATCH] Increase MaxConnections and MaxStartup --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index fa3dbdb..87b9111 100644 --- a/Dockerfile +++ b/Dockerfile @@ -91,6 +91,9 @@ FROM mpioperator/openmpi:0.4.0 AS production # Provides nslookup for NNF Containers. Used for MPI Launcher InitContainers. RUN apt-get update && apt-get install -y dnsutils && rm -rf /var/lib/apt/lists/* +# TODO remove this: +RUN apt-get update && apt-get install -y vim + COPY --from=builder /deps/libcircle/lib/ /usr COPY --from=builder /deps/libarchive/lib/ /usr COPY --from=builder /deps/lwgrp/lib/ /usr @@ -98,6 +101,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/g" /etc/ssh/sshd_config + ############################################################################### # Pull in the debugging symbols on top of production image FROM production AS debug