Gitea: incorrect .ssh/authorized_keys permissions on new instance

:uk:/:us:

My YunoHost server

Hardware: Linode VPS
YunoHost version: 4.3.6.3 (stable)
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

When I installed gitea, it let me add ssh keys in the UI; however, I was unable to clone repositories through the ssh link. It would say “permission denied (publickey).” I was able to fix this with the following commands:

sudo usermod -a -G ssh.app gitea
chmod 700 /home/gitea/.ssh
chmod 600 /home/gitea/.ssh/authorized_keys

I wanted to document this here for anyone that may run into the same issue as me.

2 Likes

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