YunoHost-Apps / gitea_ynh

Gitea is a fork of Gogs. A git platform, Mirror of https://framagit.org/YunoHost-Apps/gitea_ynh
https://gitea.io
MIT License
22 stars 17 forks source link

Please fix! gitea user account is locked - root action required #80

Open madLinux7 opened 1 year ago

madLinux7 commented 1 year ago

So i just setup my YunoHost normally including DNS records. The installation of Gitea was successful and i can access it via web interface. Edited /etc/ssh/sshd_config accordingly to the "Additional informations" tab on the applications page on my local YunoHost. Added my SSH public key for my Gitea user, created a repo and wanted to push data. I expected this to do it's job (i wanted to push via SSH, not HTTPS):

git push -u origin main

But it did not and this output appeared:

gitea@<URL>: Permission denied (publickey).

There was no logical explanation for this because i did every step right. I'm also SSHing on the console using the exact same public key. So i tailed /var/log/auth.log to look for possible causes. And voila - I spotted this line:

Jul 16 12:19:14 yuno-host sshd[29495]: User gitea not allowed because account is locked

So i had to manually passwd and assign a password to the gitea user and unlock the account by usermod -U gitea. Right after doing this everything works as expected.

I don't think these manual steps are supposed to be required by the user. Please fix for future users, thank you :)