question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Authentication failed while clonning private repo

See original GitHub issue

Description

I have an error while trying to clone some private repository. Everything works just find until the very end, when it falls with the following message:

Authentication failed. You may not have permission to access the repository. Open options and verify that you’re signed in with an account that has permission to access this repository.

So the app doesn’t see this repo, although all files are downloaded. Yeap, I signed in with the correct account, 100%.

Version

GitHub Desktop version: 0.7.0

OS version: 10.0.15063

Steps to Reproduce

  1. File -> clone repository…
  2. Enter the url of the repo (it’s private in my case).
  3. Wait.

Expected behavior: Repo works fine with the app. Or, if I really don’t have a permission to this private repo, the app shouldn’t download all files from it before raising the error.

Actual behavior: Authentication failed, app doesn’t see this repo.

Reproduces how often: 100% in my case with this particular repo.

Logs

Additional Information

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
joshabercommented, Aug 8, 2017

Thank you for your issue!

We haven’t gotten a response to our questions above. With only the information that is currently in the issue, we don’t have enough information to take action. I’m going to close this but don’t hesitate to reach out if you have or find the answers we need, we’ll be happy to reopen the issue.

1reaction
joshabercommented, Aug 8, 2017

No worries @Ionastasi!

It looks like this is the important line:

Host key verification failed.

It sounds like some of the submodules are setup with SSH URLs, but your machine doesn’t trust GitHub’s SSH servers.

There are a couple ways to fix this:

  1. Change the submodule URLs to HTTPS.
  2. Setup SSH.

The first option may be easier.

For the second, check out https://help.github.com/articles/testing-your-ssh-connection/#platform-windows.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to clone private repository github : Authentication failed
I have created a private repo in github and when I am trying to clone it using cmd (git), I am prompted with...
Read more >
Authentication failed when cloning from GitHub - Documentation
If you see the Authentication failed error message when cloning a repository from GitHub, check if you have GitHub two-factor authentication ...
Read more >
GitHub Authentication Failure when Clone, Fetch, Pull and Push
If you can directly login to the Github with the username and password, the issue might be mostly with Two Factor Authentication (2FA)....
Read more >
Authentication keeps failing while trying to clone a git ...
Hi everyone, newcomer here. I've created a DevOps code repo in OCI and I'm trying to clone it to Local - but after...
Read more >
Unable to clone private repo - Tutorials - GitLab Forum
I am trying to clone a private repo using git clone commad(git clone https://gitlab.com/sitiaisah.mohdnoor/week5.git) via git bash and have ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found