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
more-info-neededThe submitter needs to provide more information about the issuesupportIssues likely related to one person's environment or configuration
Authentication failed. You may not have permission to access the repository or the repository may have been archived. Open preferences and verify that you're signed in with an account that has permission to access this repository.
Version
GitHub Desktop: 1.5.1
Operating system: macOS High Sierra 10.13.6
Steps to Reproduce
Add repository to GitHub Desktop by local patch
Select Fetch origin
Expected Behavior
Fetch repo, using same credentials retrieving anothe private repo which works fine.
Actual Behavior
Getting an authentication failed error which is stated in the description. Is this possible due to the SSH key having a passphrase? Weird as one private repo works fine but newly created repo does not. I tested through command line and no error occurs.
Additional Information
Click on fetch Error Prompt
Logs
Reacted by sorashi, Tim Traversy, Stevoisiak, Lim, Changjun and SuperHarmony910
Is this possible due to the SSH key having a passphrase?
Perhaps - is this an SSH remote or a HTTPS remote? The .git/config for the repository should contain this information.
Also, could you attach the full log files? The Help | Show Logs in Finder menu items should open the logs folder, and inside those are the log files generated by day. This will provide some more information to help troubleshoot.
Im having the same issue so i would like to add it here.
Version
GitHub Desktop: 1.5.1
Operating system: Windows 10 10.0.17134
Problem
Can't fetch/pull/push from ssh repositories with passphrases.
Ssh key is added to ssh-agent, and using git commands from cmd will not ask for passphrase, and will work correctly.
Using git GUI will work as intended, popping up a passhprase dialog.
However, Github Desktop will still fail at authentication when fetching/pulling/pushing the same repository.
Adding another ssh key for same repository without passphrase works.
Is this possible due to the SSH key having a passphrase?
Perhaps - is this an SSH remote or a HTTPS remote? The .git/config for the repository should contain this information.
Also, could you attach the full log files? The Help | Show Logs in Finder menu items should open the logs folder, and inside those are the log files generated by day. This will provide some more information to help troubleshoot.
@shiftkey
Yes, the git config setup with the repo using https works but the git repo setup to use ssh w/ rsa w/ passphrase does not work using GitHub Desktop. How can we fix this as we require a passphrase to be HIPPA compliant when connecting? Otherwise, I will need to continue to use SourceTree as that works just fine.
This feels very familiar to #5641, where someone wanted to use an external SSH setup but GitHub Desktop would favour it's own internal version. They could change this behaviour via the core.sshCommand config value: #5641 (comment)
Otherwise, I will need to continue to use SourceTree as that works just fine.
I gather you've configured SourceTree to use a system-installed Git, which might explain why it works fine with your SSH setup.
Can't fetch private repos from my account. Always pop-ups an additional authentication window, but nothing happens.
Sidenotes
Public repos fetched without any problems. Changing repo from private to public also kinda solved this problem. Accessing any repos at website without any troubles.
(The error was parsed as 3: Authentication failed. You may not have permission to access the repository or the repository may have been archived. Open preferences and verify that you're signed in with an account that has permission to access this repository.)
Is this possible due to the SSH key having a passphrase?
Perhaps - is this an SSH remote or a HTTPS remote? The .git/config for the repository should contain this information.
Also, could you attach the full log files? The Help | Show Logs in Finder menu items should open the logs folder, and inside those are the log files generated by day. This will provide some more information to help troubleshoot.
I think the additional information here is sufficient enough at this point don't you think? @shiftkey
@shiftkey , so this is a workaround until your team can fix the desktop client? I never confused SourceTree it works from install. I just point to the repo and that's it.
Can we assume the workaround listed for Windows also applies to Mac client version of GitHub Desktop?
I am actually running GIT version 2.17.1 but mainly using a clone mirror and using Acquia DevDesktop2 to emulate
I never confused SourceTree it works from install. I just point to the repo and that's it.
@dkowalec do you have Sourcetree's Git pointing to it's embedded Git or to a system Git? If it's using the system Git, that would explain why it's working the same as the Git command line (it knows how to find the running ssh-agent process):
Can we assume the workaround listed for Windows also applies to Mac client version of GitHub Desktop?
I believe core.sshCommand works wherever Git and SSH work.
@dkowalec interesting. Anything SSH-specific in your ~/.gitconfig that we might not be aware of?
Doubtful. It is pretty basic, standard install; haven't messed with it. Please let me know any other data you need I am more than happy to provide @shiftkey
I'm having the same issue. GitHub Desktop version 1.6.0, Windows 10.
When the repo's remote is SSH, GitHub Desktop shows the authentication failed message on fetch/pull/push.
I tried setting up ssh-agent and ssh-adding my keys, but the error persists. (I do usually type my SSH password every time I use my SSH key(s) in Git Bash, because I'm quite paranoid.)
Changing the remote to HTTPS – either using the GH Desktop UI or using the git remote set-url origin command – fixes the issue, as GH Desktop can use the GitHub credentials to connect.
@sorashi it sounds like you may need to use the workaround that @shiftkey shared in #5641 (comment) to use the system Git for SSH. Try following those steps to see if it resolves this issue.
@dkowalec just to clarify -- have you tried the SSH workaround of using the system Git for SSH? You mentioned in #6538 (comment) that you were going to try it -- let us know if that got things working for you in GitHub Desktop.
@sorashi it sounds like you may need to use the workaround that @shiftkey shared in #5641 (comment) to use the system Git for SSH. Try following those steps to see if it resolves this issue.
@steveward, thank you very much, the solution works.
Unfortunately i have the exact same behavior with my MAC version of GitHub Desktop 2.3.1. The workaround only describes solutions for WIN PCs.
I tried both ways: "Publishing" a repository from the GitHub Desktop App runs an authentification error as well as Trying to "Set Up in Desktop" from the WebApp.
Unfortunately i have the exact same behavior with my MAC version of GitHub Desktop 2.3.1. The workaround only describes solutions for WIN PCs.
I tried both ways: "Publishing" a repository from the GitHub Desktop App runs an authentification error as well as Trying to "Set Up in Desktop" from the WebApp.
BTW: Billing says, my account is fine.
Just solved: Might have been caused by me changing my GitHub user name before. I used GitHub desktop with a previous user name. After logging out, deinstalling, reinstalling an logging in. The issue was fixed.
more-info-neededThe submitter needs to provide more information about the issuesupportIssues likely related to one person's environment or configuration
Activity
shiftkey commentedon Jan 5, 2019
@dkowalec thanks for the report!
Perhaps - is this an SSH remote or a HTTPS remote? The
.git/configfor the repository should contain this information.Also, could you attach the full log files? The Help | Show Logs in Finder menu items should open the logs folder, and inside those are the log files generated by day. This will provide some more information to help troubleshoot.
ignis-sec commentedon Jan 6, 2019
Im having the same issue so i would like to add it here.
Version
GitHub Desktop: 1.5.1
Operating system: Windows 10 10.0.17134
Problem
Can't fetch/pull/push from ssh repositories with passphrases.
Ssh key is added to ssh-agent, and using git commands from cmd will not ask for passphrase, and will work correctly.
Using git GUI will work as intended, popping up a passhprase dialog.
However, Github Desktop will still fail at authentication when fetching/pulling/pushing the same repository.
Adding another ssh key for same repository without passphrase works.
Sidenotes
Private keys are under username/.ssh
i tried:
billygriffin commentedon Jan 7, 2019
@desktop/support Any thoughts here?
dkowalec commentedon Jan 8, 2019
@shiftkey
Yes, the git config setup with the repo using https works but the git repo setup to use ssh w/ rsa w/ passphrase does not work using GitHub Desktop. How can we fix this as we require a passphrase to be HIPPA compliant when connecting? Otherwise, I will need to continue to use SourceTree as that works just fine.
shiftkey commentedon Jan 8, 2019
This feels very familiar to #5641, where someone wanted to use an external SSH setup but GitHub Desktop would favour it's own internal version. They could change this behaviour via the
core.sshCommandconfig value: #5641 (comment)I gather you've configured SourceTree to use a system-installed Git, which might explain why it works fine with your SSH setup.
yalanzhi commentedon Jan 8, 2019
Im having the same issue so i would like to add it here.
Version
GitHub Desktop: 1.5.1
Operating system: macOS Mojave 10.14.2
Problem
Can't fetch private repos from my account. Always pop-ups an additional authentication window, but nothing happens.
Sidenotes
Public repos fetched without any problems. Changing repo from private to public also kinda solved this problem. Accessing any repos at website without any troubles.
Logs
2019-01-08T15:33:05.163Z - info: [ui] storing generic credentials for 'github.com' and '@gmail.com'
2019-01-08T15:33:05.265Z - info: [ui] [AppStore.getAccountForRemoteURL] account found for remote: https://github.com/***/***.git - *** (has token)
2019-01-08T15:33:07.369Z - info: [ui] Executing clone: git -c credential.helper= clone --recursive --progress -- https://github.com/***/***.git /Users/// (took 2.101s)
2019-01-08T15:33:07.369Z - error: [ui]
git -c credential.helper= clone --recursive --progress -- https://github.com/***/***.git /Users/***/***/***exited with an unexpected code: 128.Cloning into '/Users///***'...
remote: Your account is disabled. Please see https://github.com/account/billing
fatal: unable to access 'https://github.com/***/***.git/': The requested URL returned error: 403
(The error was parsed as 3: Authentication failed. You may not have permission to access the repository or the repository may have been archived. Open preferences and verify that you're signed in with an account that has permission to access this repository.)
shiftkey commentedon Jan 8, 2019
@yalanzhi
steveward commentedon Jan 8, 2019
@yalanzhi I've gone ahead and unlocked your account. Let me know if you run into any issues.
dkowalec commentedon Jan 14, 2019
So the issue seems to be using SSH w/ passphrases and private repositories for my case.
@steveward
dkowalec commentedon Jan 14, 2019
I think the additional information here is sufficient enough at this point don't you think?
@shiftkey
shiftkey commentedon Jan 14, 2019
@dkowalec please see my earlier comment #6538 (comment)
dkowalec commentedon Jan 14, 2019
@shiftkey , so this is a workaround until your team can fix the desktop client? I never confused SourceTree it works from install. I just point to the repo and that's it.
I am actually running GIT version 2.17.1 but mainly using a clone mirror and using Acquia DevDesktop2 to emulate
shiftkey commentedon Jan 14, 2019
@dkowalec do you have Sourcetree's Git pointing to it's embedded Git or to a system Git? If it's using the system Git, that would explain why it's working the same as the Git command line (it knows how to find the running
ssh-agentprocess):I believe
core.sshCommandworks wherever Git and SSH work.dkowalec commentedon Jan 14, 2019
I can try the workaround but it seems SourceTree is using the Embedded Git same as yours but 2.15.1 and yours is 2.18.0

@shiftkey
shiftkey commentedon Jan 14, 2019
@dkowalec interesting. Anything SSH-specific in your
~/.gitconfigthat we might not be aware of?dkowalec commentedon Jan 14, 2019
Doubtful. It is pretty basic, standard install; haven't messed with it. Please let me know any other data you need I am more than happy to provide
@shiftkey
sorashi commentedon Jan 21, 2019
I'm having the same issue. GitHub Desktop version 1.6.0, Windows 10.
When the repo's remote is SSH, GitHub Desktop shows the authentication failed message on fetch/pull/push.
I tried setting up
ssh-agentandssh-adding my keys, but the error persists. (I do usually type my SSH password every time I use my SSH key(s) in Git Bash, because I'm quite paranoid.)Changing the remote to HTTPS – either using the GH Desktop UI or using the
git remote set-url origincommand – fixes the issue, as GH Desktop can use the GitHub credentials to connect.steveward commentedon Jan 23, 2019
@sorashi it sounds like you may need to use the workaround that @shiftkey shared in #5641 (comment) to use the system Git for SSH. Try following those steps to see if it resolves this issue.
@dkowalec just to clarify -- have you tried the SSH workaround of using the system Git for SSH? You mentioned in #6538 (comment) that you were going to try it -- let us know if that got things working for you in GitHub Desktop.
sorashi commentedon Jan 24, 2019
@steveward, thank you very much, the solution works.
tierninho commentedon Feb 12, 2019
This issue appears to be resolved. Happy to reopen if there are any other concerns.
AlexSchaeferBs commentedon Feb 18, 2020
Unfortunately i have the exact same behavior with my MAC version of GitHub Desktop 2.3.1. The workaround only describes solutions for WIN PCs.
I tried both ways: "Publishing" a repository from the GitHub Desktop App runs an authentification error as well as Trying to "Set Up in Desktop" from the WebApp.
BTW: Billing says, my account is fine.
tierninho commentedon Feb 18, 2020
@AlexSchaeferBs Please fill a new issue and if possible, include your logs. Thank you!
AlexSchaeferBs commentedon Feb 19, 2020
Just solved: Might have been caused by me changing my GitHub user name before. I used GitHub desktop with a previous user name. After logging out, deinstalling, reinstalling an logging in. The issue was fixed.