Getting permission denied (public key) on gitlab

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

    if you are in Linux or macox , just try this in terminal:

    ssh-add -l
    

    if it return nothing, try this:

    ssh-add
    

    it must create identity in ~/.ssh/id_rsa

    after retry :

    ssh-add -l
    

    it must return your identity, so after retry to clone, it's must work

    NB: don't forget to add your ssh key in your profile gitlab

    thanks

提交回复
热议问题