You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I recreated my docker file, the ssh options were not working anymore, I now get the following error when trying to connect: [email protected]: Permission denied (publickey).
The gitea logs show that: User user from XX.XXX.XXX.XXX not allowed because not listed in AllowUsers Connection closed by invalid user user XX.XXX.XXX.XXX port 46XXX [preauth]
The AllowUsers file in /etc/ssh/sshd_config indeed only contains:
AllowUsers git
Is there any way to solve this problem so I can again use gitea, I cannot pull/push anything because of this issue.
I saw that issue #5623 relates to this, and the code reflects that gitea should be added as a user to AllowUsers, but somehow it is not.
The text was updated successfully, but these errors were encountered:
That file (sshd_config) is generated by s6 from a template, which is in docker/root/etc/templates/sshd_config. The only variable in the template is SSH_PORT. The user in AllowedUsers should also be a variable.
Try modifying this line
AllowUsers git
into this:
AllowUsers ${USER}
in the template. Then rebuild the docker image. When you log into the container, you'll see the correct line in /etc/ssh/sshd_config.
[x]
):Description
When I recreated my docker file, the ssh options were not working anymore, I now get the following error when trying to connect:
[email protected]: Permission denied (publickey).
The gitea logs show that:
User user from XX.XXX.XXX.XXX not allowed because not listed in AllowUsers
Connection closed by invalid user user XX.XXX.XXX.XXX port 46XXX [preauth]
The AllowUsers file in /etc/ssh/sshd_config indeed only contains:
AllowUsers git
Is there any way to solve this problem so I can again use gitea, I cannot pull/push anything because of this issue.
I saw that issue #5623 relates to this, and the code reflects that gitea should be added as a user to AllowUsers, but somehow it is not.
The text was updated successfully, but these errors were encountered: