YunoHost-Apps / weblate_ynh

Weblate package for YunoHost
https://weblate.org/
GNU Affero General Public License v3.0
13 stars 11 forks source link

SSH-key is "to open" #122

Open pietervdvn opened 1 week ago

pietervdvn commented 1 week ago

Describe the bug

I'm trying to setup my repository with direct "push"-access. I've added the public ssh-key from https://translate.mapcomplete.org/manage/ssh/ as deploy key in my github repository. When trying to add a component while using git@github.com:pietervdvn/MapComplete, the UI complains about incorrect key permissions: image

root@admin:/var/www/weblate/data/ssh# ls -l
total 28
drwxr-xr-x 2 weblate weblate 4096 Nov 13 23:00 bin-9c0a714cd5c59b01
-rw-r--r-- 1 weblate weblate   58 Nov 13 23:00 config
-rwxr-xr-x 1 weblate weblate  399 Nov 12 23:58 id_ed25519
-rwxr-xr-x 1 weblate weblate   89 Nov 12 23:58 id_ed25519.pub
-rwxr-xr-x 1 weblate weblate 3369 Nov 12 23:58 id_rsa
-rwxr-xr-x 1 weblate weblate  733 Nov 12 23:58 id_rsa.pub
-rw-r--r-- 1 weblate weblate  828 Nov 13 23:50 known_hosts

Context

pietervdvn commented 1 week ago

I did run (via SSH) which solved my problem.

root@admin:/var/www/weblate/data/ssh# chmod g-rx id_ed25519
root@admin:/var/www/weblate/data/ssh# chmod o-rx id_ed25519
root@admin:/var/www/weblate/data/ssh# chmod g-rx id_rsa
root@admin:/var/www/weblate/data/ssh# chmod o-rx id_rsa

Maybe those steps should be added to the install script?