Getting permission denied (public key) on gitlab

前端 未结 30 2477
太阳男子
太阳男子 2020-12-02 04:27

My problem is that I can\'t push or fetch from GitLab. However, I can clone (via HTTP or via SSH). I get this error when I try to push :

Permission de

30条回答
  •  独厮守ぢ
    2020-12-02 04:55

    I have gitlab running with docker, this is what I did to fix my problem.

    Found that inside docker /var/log/gitlab/sshd/current there were multiple occurences of a message:

    Authentication refused: bad ownership or modes for file /var/opt/gitlab/.ssh/authorized_keys

    After which I changed ownership of that file from 99:users to git:users with:

    chown git:users authorized_keys

提交回复
热议问题