Configuring ssh remote for Gitea

My YunoHost server

Hardware: Old laptop at home
YunoHost version: 4.0.3
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

Hello,

I’ve just installed Gitea and everything seems to work more or less fine so far, but I’m not being able to setup an ssh remote to one repository of mine.

What happens is that, when I set the remote to gitea@git.domain.tld:romario/project.git instead of authenticating by pubkey like it should, it tries to do a password authentication:

> git fetch
Debian GNU/Linux 10
gitea@git.domain.tld's password:

Maybe this is happening because I’m in my local network? I’m not sure, but, in any case, trying to disable password authentication for the gitea user did not work:

Match User gitea
        PasswordAuthentication no
        PubkeyAuthentication yes

It still asked for gitea's password after that.

Any ideas? Thanks in advance.

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