From 5de01e21a19732785931f2db9c553ddffa60c4e6 Mon Sep 17 00:00:00 2001 From: Dario Louzado Date: Mon, 31 May 2021 22:33:50 -0300 Subject: [PATCH] Make sshd_config more flexible regarding connections (#16009) * Make sshd_config more flexible regarding MaxStartups and MaxSessions. See https://man.openbsd.org/sshd_config for more information. * make property prefix equals other existing Gitea SSH properties. Co-authored-by: dlouzado --- 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 84a27b9190fa..a0ff0651d950 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 ${SSH_MAX_STARTUPS} +MaxSessions ${SSH_MAX_SESSIONS} + LogLevel INFO HostKey /data/ssh/ssh_host_ed25519_key