Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP Basic: Access denied fatal: Authentication failed

Tags:

git

gitlab

I use GitLab Community Edition 9.1.3 2e4e522 on Windows 10 Pro x64. With Git client.

Error

Cloning into 'project_name'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://[email protected]/my_user_name/project_name.git/'

How to fix it?

like image 291
Do Nhu Vy Avatar asked Oct 03 '22 06:10

Do Nhu Vy


People also ask

How to fix Git authentication failed error?

A simple git fetch/pull command will throw a authentication failed message. But do the same git fetch/pull command second time, and it should prompt a window asking for credential (username/password). Enter your Id and new password and it should save and move on. Show activity on this post. I use VS Code on my mac OS and GitLab for my project.

How to avoid Access Denied error in GitLab?

If you are using git > 2.11 and using Kerberos to interact with Gitlab you need set this configuration in your local git to avoid the remote: HTTP Basic: Access deniederror. $ git config --global http.emptyAuth true

How to fix GitHub two-factor authentication not working?

If you are not prompted for your username and password, your credentials may be cached on your computer. You can update your credentials in the Keychain to replace your old password with the token. That’s it, you’re done. Now the problem that arose after enabling two-factor authentication in the GitHub account has been solved.

Does 2FA personal access token work with Git Credential Manager?

@vonkad and @melvicgomez: this bug report is that the 2FA personal access token does not work if you have the Git Credential Manager installed. @andschwa I used the personal access token to pass the authentication. Just did it few 2days ago after I enabled the 2FA.


2 Answers

Open CMD (Run as administrator) type command:

git config --system --unset credential.helper

then enter new password for Git remote server.

like image 95
Do Nhu Vy Avatar answered Oct 17 '22 01:10

Do Nhu Vy


Im my case i was using Git Credential Manager for Windows (it was installed by default, I didn't install it manually)

Credentials Manager had saved my old password but i changed it lately.

If you are in the same conditions, to solve this problem: Go to Control Panel -> Credentials Manager and delete git account. After that it will ask you again for the credentials.

like image 28
KlevisGjN Avatar answered Oct 17 '22 01:10

KlevisGjN