You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Authentication failed while clonning private repo #2338
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
File -> clone repository...
Enter the url of the repo (it's private in my case).
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.
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.
Reacted by Cam McKinnon, ServietteRussian, Tan Vo, Joel and nico
Also, I need to notice that I successfully downloaded this repo (again, with the same acc and via https and without any special actions) with the official GitHub Desktop (Chocolate-Covered Yaks (3.3.4.0) 50415df).
I think completing the ssh -T [email protected] steps should add the host entry to your SSH configuration, and remove the Host key verification failed. error.
@ionastasi could you confirm that you aren't able to reproduce the issue?
@joshaber@shiftkey Nope, I still have this problem =(
But it seems like ssh itself works. Indeed, if it didn't, Icouldn't clone the repo with another GitHub Desktop.
@ionastasi could you clarify which problem you are referring to here? I'm going to close this out until we can understand the current behaviour you're seeing when cloning, so please include a fresh log file so we can understand what's happening...
Activity
shiftkey commentedon Jul 27, 2017
@ionastasi a few questions:
%APPDATA%\\GitHub Desktop\\logs\\*.desktop.production.logthat might highlight the underlying error?joshaber commentedon 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.
ionastasi commentedon Aug 8, 2017
@shiftkey @joshaber Oops, I'm sorry for beeing late.
GitHub account.
Seems like it's an ordinary GitHub repo. I don't see an information that it's not.
https
May be. You can take a look here: https://pastebin.com/5YR2YA0G I only changed names and deleted the log about compressing, resolving and etc.
Also, I need to notice that I successfully downloaded this repo (again, with the same acc and via https and without any special actions) with the official GitHub Desktop (Chocolate-Covered Yaks (3.3.4.0) 50415df).
joshaber commentedon Aug 8, 2017
No worries @ionastasi!
It looks like this is the important line:
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:
The first option may be easier.
For the second, check out https://help.github.com/articles/testing-your-ssh-connection/#platform-windows.
ionastasi commentedon Aug 10, 2017
Hi @joshaber
Looks like ssh connection works well.
joshaber commentedon Aug 10, 2017
To be clear, does that mean this issue is resolved?
shiftkey commentedon Aug 13, 2017
I think completing the
ssh -T [email protected]steps should add the host entry to your SSH configuration, and remove theHost key verification failed.error.@ionastasi could you confirm that you aren't able to reproduce the issue?
ionastasi commentedon Aug 14, 2017
@joshaber @shiftkey Nope, I still have this problem =(
But it seems like ssh itself works. Indeed, if it didn't, Icouldn't clone the repo with another GitHub Desktop.
shiftkey commentedon Aug 31, 2017
@ionastasi could you clarify which problem you are referring to here? I'm going to close this out until we can understand the current behaviour you're seeing when cloning, so please include a fresh log file so we can understand what's happening...
neil-leigh commentedon Feb 28, 2019
Solution by joshaber from Aug 8, 2017
" Host key verification failed.
There are a couple ways to fix this:
Just switching the URL from SSH to HTTPS solved this issue for me - thanks!