Gitea and ssh access together

My YunoHost server

Hardware: LXC image at home
YunoHost version: 11.2.5
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: gitea 1.20.5~ynh1

Description of my issue

I would like to install gitea on my yunohost and access it through git commands.

But if I follow the instructions in the git page for gitea I cannot access anymore via ssh because I get this error in auth.log

debug1: trying public key file /home/yunohost.app/leandro/.ssh/authorized_keys
debug1: Could not open authorized keys '/home/yunohost.app/leandro/.ssh/authorized_keys': No such file or directory

My change in /etc/ssh/sshd_config are

PubkeyAuthentication yes
AuthorizedKeysFile /home/yunohost.app/%u/.ssh/authorized_keys
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no

How I could use the two services together?

You need to add your public key from your Gitea app, no needed to update your SSHD file.

1 Like

Thanks!

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