Getting permission denied (public key) on gitlab

前端 未结 30 2526
太阳男子
太阳男子 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:38

    I think the simple solution is to add private key to authentication agent (if your key is not ~/.ssh/id_rsa),

    ssh-add ~/.ssh/
    

    You basically let the ssh-agent take care of it.

    Additionally, you can add it permanently.

提交回复
热议问题