desktop: Authentication Failed

Description

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

  1. Add repository to GitHub Desktop by local patch
  2. 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 image Error Prompt image

Logs

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 5
  • Comments: 23 (11 by maintainers)

Most upvoted comments

@AlexSchaeferBs Please fill a new issue and if possible, include your logs. Thank you!

@dkowalec thanks for the report!

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.

HTTPS (works) [remote "origin"] url = https://github.com/organization-name/repo-name.git fetch = +refs/heads/*:refs/remotes/origin/*

SSH (does not work) [remote "origin"] url = git@github.com:organization-name/repo-name.git fetch = +refs/heads/*:refs/remotes/origin/*