]> source.dussan.org Git - gitea.git/commitdiff
Make sshd_config more flexible regarding connections (#16009)
authorDario Louzado <louzadod@gmail.com>
Tue, 1 Jun 2021 01:33:50 +0000 (22:33 -0300)
committerGitHub <noreply@github.com>
Tue, 1 Jun 2021 01:33:50 +0000 (21:33 -0400)
* 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 <dlouzado@senado.leg.br>
docker/root/etc/templates/sshd_config

index 84a27b9190fa3dbf400bc461570c93449864d3c4..a0ff0651d950b822ccdea787cb0d44c77482ad0c 100644 (file)
@@ -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