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.

Unable to push/pull from GitHub Desktop after adding SSH key to account

See original GitHub issue

Description

Version

  • GitHub Desktop: 1.6.4
  • Operating system: macOS Mojave, 10.14.3

Steps to Reproduce

  1. Opened up GitHub Desktop, which automatically puts me in the one repository I use it for.
  2. Click “Fetch origin” (currently says “Never fetched”, however I did a pull this morning and everything works)
  3. Get the following error:

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.

  1. Open “Preferences”—I am indeed signed in.
  2. Switch over to the web client and check the repo “Settings”. Permissions work.

Expected Behavior

It’ll pull from origin with no issue

Actual Behavior

It doesn’t

Additional Information

I added an SSH key to my account moments before this happened and set up my remotes in the CLI so I could switch between the CLI and the GUI in order to help a colleague troubleshoot an issue. Checked to make sure there was nothing in staging and that I was working on the latest version of the file, and everything was fine and up-to-date. But once I was able to set up the remote and push to origin with my ssh key, I was then unable to do anything in the GUI.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

21reactions
karlguillottecommented, Dec 4, 2019

For people ending up here: I changed from ssh to https in GitHub Desktop and it worked!

3reactions
ls-biprodas-bachhercommented, Mar 24, 2021

I was facing the same issue. Now fixed. basically, the config file was missing for me "If you’re using macOS Sierra 10.12.2 or later, you will need to modify your ~/.ssh/config file to automatically load keys into the ssh-agent and store passphrases in your keychain."

I followed these steps

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to push in GitHub desktop · Issue #4181
I added the key to my account properly (I'm familiar with using SSH with GitHub, so I don't think the key is the...
Read more >
ssh login using Github desktop #11918
I am unable to push/pull from me git enterprise account even after having logged. It works fine with git bash but on github...
Read more >
I can't push/pull anymore in GitHub Desktop #3472
Hello, I have created a private repository and I can't pull/push/fetch to it. (via Windows Desktop). The error is: Authentication failed.
Read more >
GitHub desktop should be able to prompt for SSH key ...
It seems like the desktop app does not prompt for SSH key passphrase when it should. Then we created a new SSH key...
Read more >
[solved] github desktop does not work - Authentication failed ...
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.)
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