Skip to content

Commit

Permalink
Make sshd_config more flexible regarding connections (go-gitea#16009)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
2 people authored and AbdulrhmnGhanem committed Aug 10, 2021
1 parent 5b3663e commit 034adc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/root/etc/templates/sshd_config
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 034adc4

Please sign in to comment.