Error: Authenthication failed when fetch/push/pulling
See original GitHub issueDescription
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
- GitHub Desktop: v1.6.5
- Operating system: Microsoft Windows [Version 10.0.17134.706]
Steps to Reproduce
Expected Behavior
Commit
Click push or fetch
Sync repo as usual
Actual Behavior
Make a commit
Click push or fetch at anytime
Authentication Error
Additional Information
Remote is set using SSH
, i.e: git@github.com:csalmeida/example-repo.git
Authentication error showing up after clicking fetch.
Logs
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
@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.
@csalmeida I’m glad to hear that got things working for you! I’m going to close this issue out.