Gogs git push with ssh keys

Hello,

My YunoHost server

Hardware: Raspberry Pi at home
YunoHost version: 11.1.18
I have access to my server : Through SSH / through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If your request is related to an app, specify its name and version: gogs 0.13.0~ynh2

Description of my issue

I am trying to setup SSH keys, in order to pull / push to my git repositories without entering the password.

I added my SSH public keys in my profile of Gogs.

But when I use git pull I have the following:

$ git push
Debian GNU/Linux 11
gogs@<server_name>.fr's password:

The logs at this time in /var/log/auth.log say

May 11 11:28:40 <server_name> sshd[1000953]: Connection closed by invalid user gogs <internet_ip> port 58090 [preauth]
May 11 11:28:41 <server_name> sshd[1000955]: Connection from <internet_ip> port 33848 on <local_ip> port 22 rdomain ""
May 11 11:28:41 <server_name> sshd[1000955]: User gogs from <internet_ip> not allowed because none of user's groups are listed in AllowGroups

I prefer to inform of this problem before tweaking anything.
Best regards,
Matthias

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.