From cecdf9c727dea477e2934bb1d3f7105317e8add1 Mon Sep 17 00:00:00 2001 From: dlouzado Date: Fri, 28 May 2021 11:10:40 -0300 Subject: [PATCH 1/2] Make sshd_config more flexible regarding MaxStartups and MaxSessions. See https://man.openbsd.org/sshd_config for more information. --- docker/root/etc/templates/sshd_config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/root/etc/templates/sshd_config b/docker/root/etc/templates/sshd_config index 84a27b9190fa3..f1f2a3c878516 100644 --- a/docker/root/etc/templates/sshd_config +++ b/docker/root/etc/templates/sshd_config @@ -5,6 +5,9 @@ AddressFamily any ListenAddress 0.0.0.0 ListenAddress :: +MaxStartups ${SSHD_MAX_STARTUPS} +MaxSessions ${SSHD_MAX_SESSIONS} + LogLevel INFO HostKey /data/ssh/ssh_host_ed25519_key From 45c6ea7a93012712914902e1a1ae60cc764be853 Mon Sep 17 00:00:00 2001 From: dlouzado Date: Sun, 30 May 2021 14:46:43 -0300 Subject: [PATCH 2/2] make property prefix equals other existing Gitea SSH properties. --- docker/root/etc/templates/sshd_config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/root/etc/templates/sshd_config b/docker/root/etc/templates/sshd_config index f1f2a3c878516..a0ff0651d950b 100644 --- a/docker/root/etc/templates/sshd_config +++ b/docker/root/etc/templates/sshd_config @@ -5,8 +5,8 @@ AddressFamily any ListenAddress 0.0.0.0 ListenAddress :: -MaxStartups ${SSHD_MAX_STARTUPS} -MaxSessions ${SSHD_MAX_SESSIONS} +MaxStartups ${SSH_MAX_STARTUPS} +MaxSessions ${SSH_MAX_SESSIONS} LogLevel INFO