Getting permission denied (public key) on gitlab

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

    I had the same issue, I resolved it by adding a new ssh key:

    1. ssh-keygen -t ed25519 -C "email@example.com"
    2. Copy your public SSH key to the clipboard (xclip -sel clip < ~/.ssh/id_ed25519.pub in my case on Linux )
    3. On gitlab, go to settings=>ssh keys and past the new key

提交回复
热议问题