Skip to content

Commit 034adc4

Browse files
louzadoddlouzado
authored andcommitted
Make sshd_config more flexible regarding connections (go-gitea#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 <[email protected]>
1 parent 5b3663e commit 034adc4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/root/etc/templates/sshd_config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ AddressFamily any
55
ListenAddress 0.0.0.0
66
ListenAddress ::
77

8+
MaxStartups ${SSH_MAX_STARTUPS}
9+
MaxSessions ${SSH_MAX_SESSIONS}
10+
811
LogLevel INFO
912

1013
HostKey /data/ssh/ssh_host_ed25519_key

0 commit comments

Comments
 (0)