4

I tried to simply clone a Gitlab project jusing both HTTPS and SSH and they both don't work and print back an atuhentication failed message.

When trying with https address:

git clone https://gitlab.com/project.aa/project.git

Cloning into 'frontend'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/project.aa/project.git'

And with my SSH key that's the message I get:

Cloning into 'frontend'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

What can I do?

2
  • 1
    You've tried git clone git://gitlab.com/project.aa/project.git ? Commented May 4, 2020 at 9:46
  • the command with git:// freezes Commented Jul 10, 2023 at 12:49

1 Answer 1

10

Try log-out and login with the same credentials that you're trying to use for cloning the repository. If the problem persists: In Windows, Search for Credential Manager. In that choose Windows manager. Select your Gitlab credentials and modify it.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks a lot, I had to modify the credentials
I have the same problem but I am at Linux Ubuntu how can I resolve?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.