Gitea: incorrect .ssh/authorized_keys permissions on new instance


My YunoHost server

Hardware: Linode VPS
YunoHost version: (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 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.


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