YunoHost-Apps / gogs_ynh

Gogs package for YunoHost
http://gogs.io
GNU General Public License v3.0
18 stars 9 forks source link

Can not clone with SSH: AllowGroups #77

Open matthiasbe opened 1 year ago

matthiasbe commented 1 year ago

When I use git pull with an SSH remote url, it fails with the following error in /var/log/auth.log

User gogs from 195.132.55.251 not allowed because none of user's groups are listed in AllowGroups

To be able to use SSH interaction, I had to add gogs in the AllowGroups.

I edited the file: /etc/ssh/sshd_config

With the following line:

AllowGroups ssh.main sftp.main ssh.app sftp.app admins root gogs

Now I don't have the error anymore but there is another problem coming, that I will state in another issue.