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.

Error: Authenthication failed when fetch/push/pulling

See original GitHub issue

Description

I have come across an authentication error when using v1.6.5 of Desktop.

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

This started occurring after removing an older version of the app when noticing two versions of the app were installed concurrently. I cannot recall the version of the app that was removed from my machine.

This issue is also described at #3816 and #4181, however, I was encouraged by @steveward to open a new issue, sharing my logs below.

Version

  • Operating system: Microsoft Windows [Version 10.0.17134.706]

Steps to Reproduce

Expected Behavior

  1. Commit
  2. Click push or fetch
  3. Sync repo as usual

Actual Behavior

  1. Make a commit
  2. Click push or fetch at anytime
  3. Authentication Error

Additional Information

Remote is set using SSH, i.e: git@github.com:csalmeida/example-repo.git

github_desktop_authentication_failed

Authentication error showing up after clicking fetch.

Logs

2019-04-23.desktop.production.log

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
stevewardcommented, Apr 24, 2019

@csalmeida it looks like it’s failing to add the key to your known_hosts file:

Failed to add the host to the list of known hosts (/c/Users/almeida/.ssh/known_hosts).

Can you check to see if that file exists on your machine? Can you also verify that the permissions are set correctly for that directory? That could be a cause of this error.

0reactions
stevewardcommented, Apr 24, 2019

@csalmeida I’m glad to hear that got things working for you! I’m going to close this issue out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
Git push results in "Authentication Failed" - Stack Overflow
Go to Control Panel > User Accounts > Credential Manager > Windows Credentials. You will see Git credentials in the list (e.g. git:https://)....
Read more >
Fix Git error “fatal: Authentication failed” - LinuxPip
Usually, the “Authentication Failed” error happens if you recently enabled 2-Factor Authentication on your GitHub account and uses HTTPS to push ...
Read more >
Git Commands Return Fatal: Authentication Failed
When performing a Git operation to the Bitbucket Server instance over HTTP, the command fails with a fatal: Authentication failed error.
Read more >
Fix git fatal: Authentication failed (Windows Git Bash) - YouTube
Key moments. View all · Remove the one with 'git' · Remove the one with 'git' · Remove the one with 'git' ·...
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