Git hub desktop, cloning repository: authentication failed

3.2k Views Asked by At

Using github desktop with a self taught fundamental level of understanding for github.

When I am trying to clone a repository to another computer it pops up with "authentication failed please put in username and password" After putting in username and password it repeats the process of saying authentication failed.

I feel as though I haven't done much to warrant any problems but the app doesn't even suggest any other problem apart from the username and password possibly being wrong.

What are the steps I should take to fix this?

enter image description here

Steps I take to create this problem:

  1. Make a private repository
  2. Try to download the repository on another computer.
  3. Put int username and password when it says "authentication failed" - notice it repeats this authentication failed popup.
  4. Cry.

Ways I have worked around this:

  • Temporarily making my repository public and then downloading it.

  • Only working from the computer that created the repository/ when on another persons project only working from one computer.

  • Using bitbucket with SSH keys.

1

There are 1 best solutions below

0
On BEST ANSWER

The authenticity of GIthub could not be established. Not that github could not establish the computers authenticity.

This was likely due to the lack of ports open to acess the computer. checking for the ssh authenticity and then asking to continue without github confirmed authenticity solved it. in git bash.

This requires the use of an SSH key:

https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/connecting-to-github-with-ssh enter image description here