HTTP Basic: Access denied fatal: Authentication failed

后端 未结 14 1429
无人及你
无人及你 2021-01-30 02:23

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 de         


        
相关标签:
14条回答
  • 2021-01-30 03:00

    Before digging into the solution lets first see why this happens.

    Before any transaction with git that your machine does git checks for your authentication which can be done using

    1. An SSH key token present in your machine and shared with git-repo(most preferred) OR
    2. Using your username/password (mostly used)

    Why did this happen

    In simple words, this happened because the credentials stored in your machine are not authentic i.e.there are chances that your password stored in the machine has changed from whats there in git therefore

    Solution

    Head towards, control panel and search for Credential Manager look for your use git url and change the creds.

    There you go this works with mostly every that windows keep track off

    0 讨论(0)
  • 2021-01-30 03:01

    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.

    0 讨论(0)
  • 2021-01-30 03:01
    • Try if it works on the Git Bash
    • Have you added a ssh key to your account? If yes remove it and try again. If not add one and try the ssh url.
    • You don't necessarily need Tortoise Git but it may also work around your problem
    • Try to re-install Git without the Git Credential Manager for Windows

    When you've fixed the push problem you will also be able to clone it when it is private or internal.

    0 讨论(0)
  • 2021-01-30 03:03

    The updating of the password in the windows credential manager was not the solution for me.

    I had to set a different remote url, by:

    git remote set-url origin https://gitlab....git

    The url in this case was the one that could be found in Gitlab under Clone -> Clone with HTTPS. It was not the one in the command line instructions.

    0 讨论(0)
  • 2021-01-30 03:07

    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.

    0 讨论(0)
  • 2021-01-30 03:09

    Open CMD (Run as administrator) type command:

    git config --system --unset credential.helper
    

    then enter new password for Git remote server.

    0 讨论(0)
提交回复
热议问题