-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gitea docker container's SSHD fails due to missing MaxStartups and MaxSessions in sshd_config #16044
Comments
I submitted this issue before I knew about this pull thread discussing a potential fix: |
zeripath
added a commit
to zeripath/gitea
that referenced
this issue
Jun 1, 2021
Unforunately go-gitea#16009 makes these settings mandatory. This PR uses the same technique as used for the certificates to make these settings non-mandatory. Fix go-gitea#16044 Signed-off-by: Andrew Thornton <[email protected]>
techknowlogick
pushed a commit
that referenced
this issue
Jun 1, 2021
Unforunately #16009 makes these settings mandatory. This PR uses the same technique as used for the certificates to make these settings non-mandatory. Fix #16044 Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: 6543 <[email protected]>
AbdulrhmnGhanem
pushed a commit
to kitspace/gitea
that referenced
this issue
Aug 10, 2021
Unforunately go-gitea#16009 makes these settings mandatory. This PR uses the same technique as used for the certificates to make these settings non-mandatory. Fix go-gitea#16044 Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: 6543 <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Today, I bounced the docker container/image using
gitea/gitea:latest
in my kubernetes configurations. The container log showed that sshd fails to start due toMissing MaxStartups spec
on line 8. I was no longer able to communicate to gitea on ssh as suspected:I executed a shell within the container and looked at the
sshd_config
, and it has empty values forMaxStartups
andMaxSessions
as the log indicated:Went looking through recent changes to the gitea code here on github and found this commit from 14 hours ago where
MaxStartups ${SSH_MAX_STARTUPS}
andMaxSessions ${SSH_MAX_SESSIONS}
were just added to the sshd_config in the following commit:5de01e2
I didn't investigate any further, but the environment variables of
SSH_MAX_STARTUPS
andSSH_MAX_SESSIONS
appear to not have defaults preset and sshd_config values ultimately come up empty.Thanks.
The text was updated successfully, but these errors were encountered: