gitea_ynh
gitea_ynh copied to clipboard
Please fix! gitea user account is locked - root action required
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 :)
- Hardware: VPS bought online (arm64)
- YunoHost version: 11.1.22 (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