git clone: Authentication failed for

前端 未结 12 1361
天命终不由人
天命终不由人 2020-12-25 09:57

Trying to access private corporate tfs. They gave me access by giving appropriate rights to windows user (domain\\login).

I\'m fine with accessing web interface of t

12条回答
  •  感动是毒
    2020-12-25 10:23

    As the other answers suggest, editing/removing credentials in the Manage Windows Credentials work and does the job. However, you need to do this each time when the password changes or credentials do not work for some work. Using ssh key has been extremely useful for me where I don't have to bother about these again once I'm done creating a ssh-key and adding them on the server repository (github/bitbucket/gitlab).

    Generating a new ssh-key

    1. Open Git Bash.

    2. Paste the text below, substituting in your repo's email address. $ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

    3. When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location.

    4. Then you'll be asked to type a secure passphrase. You can type a passphrase, hit enter and type the passphrase again.

    Or, Hit enter twice for empty passphrase.

    1. Copy this on the clipboard:

      clip < ~/.ssh/id_rsa.pub

    And then add this key into your repo's profile. For e.g, on github->setting->SSH keys -> paste the key that you coppied ad hit add

    Ref: https://help.github.com/en/enterprise/2.15/user/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key

    You're done once and for all!

提交回复
热议问题