When I try to clone a project from GitLab it says "Failed to authenticate". I typed my username and password correctly(I've tried it few times), configured my SSH key. I've tried my access token instead of my password and still unable to clone. I'm using HTTPS clone
CodePudding user response:
If you have configure your SSH key, make sure:
said ssh key does authenticate your properly:
ssh -Tv [email protected]
to use an SSH URL when cloning your GitLab repository
git clone [email protected]:me/myRepo
configured my SSH key. I'm using HTTPS clone
Then the SSH key does not matter.
Check your git config --global credential.helper
: if set, it might have cached the wrong credentials.
CodePudding user response:
Please create an access token from:
https://gitlab.com/-/profile/personal_access_tokens
Make sure to check all the required boxes, at least you should select read_repository
and write_repository
.
Next time when you clone the project, use your email and this access token rather than your password.