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
{{ message }}
Repository navigation
GitHub Desktop 1.0.1 Logged in but get authentication failure on push or pull #2847
I am trying to use GitHub Desktop to access a repository that I have been using with Windows Git from Windows 10 64Bit. I am able to log in with GitHub Desktop but get an an authorization failure when I try to do a push or pull. The following is extracted from the log file:
2017-09-22T18:15:15.607Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 6.772s)
2017-09-22T18:15:15.617Z - error: [ui] git -c credential.helper= fetch --progress --prune origin exited with an unexpected code: 128.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
(The error was parsed as 2: Authentication failed. You may not have permission to access the repository. Open options and verify that you're signed in with an account that has permission to access this repository.)
I read over the documentation but did not see anything about setting up a public key similar to what I did for putty and ssh. Did I miss something?
I tried it on another system that had never had %USERPROFILE%\.ssh setup. There were no messages about needing to setup the public key. I added RSA key files and a known_hosts file containing github and was able to get that system working also.
@e76nystrom thanks for the feedback. We're tracking a similar story over in #2579 around helping to setup SSH better, whether it's documentation or in the app itself. Please keep an eye on that issue.
i'm experiencing the exact same issue. i'm brand new to github, hoping to participate in hacktoberfest, but for whatever reason using github is more complicated than coding itself :/ how do i fix this exactly?
Reacted by Michael Holmes, Megan Rose and Alejandro
I've tried copying a github_rsa.pub to id_rsa.pub and github_rsa to id_rsa in %USERPROFILE%.ssh to no avail. Still can't clone, fetch, push or pull from the new Github Desktop. Very frustrating when the classic github desktop just worked. Also frustrating that issue is closed. This is not just a bug, this makes the product unusable. This is a fatal issue. Wouldn't be so bad if the classic Desktop application was still available, but it looks to be removed during installation of the new github desktop app.
My remotes URL is https already, so the simple fix is not an option for me.
Activity
e76nystrom commentedon Sep 24, 2017
I was able to get it working by adding the public key found in my %USERPROFILE%\.ssh\id_rsa.pub.
%USERPROFILE% is C:\User(your user name)
Should this be mentioned in the documentation?
e76nystrom commentedon Sep 24, 2017
I tried it on another system that had never had %USERPROFILE%\.ssh setup. There were no messages about needing to setup the public key. I added RSA key files and a known_hosts file containing github and was able to get that system working also.
shiftkey commentedon Sep 24, 2017
@e76nystrom thanks for the feedback. We're tracking a similar story over in #2579 around helping to setup SSH better, whether it's documentation or in the app itself. Please keep an eye on that issue.
heyimalex commentedon Oct 11, 2017
Simple fix (if you don't care about ssh vs https) is to change the remote's url. For anyone else who lands here.
gtkpr commentedon Oct 21, 2017
i'm experiencing the exact same issue. i'm brand new to github, hoping to participate in hacktoberfest, but for whatever reason using github is more complicated than coding itself :/ how do i fix this exactly?
joshaber commentedon Oct 23, 2017
@gtkpr Could you create a new issue and fill out the issue template please? Thanks!
gtkpr commentedon Oct 24, 2017
@joshaber i'm not even going to bother. already uninstalled it. i'll just do my stuff via browser.
jborn commentedon Jan 15, 2018
I've tried copying a github_rsa.pub to id_rsa.pub and github_rsa to id_rsa in %USERPROFILE%.ssh to no avail. Still can't clone, fetch, push or pull from the new Github Desktop. Very frustrating when the classic github desktop just worked. Also frustrating that issue is closed. This is not just a bug, this makes the product unusable. This is a fatal issue. Wouldn't be so bad if the classic Desktop application was still available, but it looks to be removed during installation of the new github desktop app.
My remotes URL is https already, so the simple fix is not an option for me.
Everything works from the command line.
Using 1.0.12 on Windows 10.
joshaber commentedon Jan 16, 2018
@jborn Please open a new issue and fill out the issue template so that we're better able to help you.
Rodge commentedon Mar 7, 2019
For me it helped by simply logging out and in again (in File -> Options).
leonardosantoslopes commentedon Mar 23, 2019
As Rodge said, logging out and logging in back.
It worked.
qysnn commentedon Apr 10, 2019
Yes. After hours of search I finally solved it by logging out and log in again. That is frustrating.
whiteboxgaming commentedon Mar 20, 2021
Im having same issue and I've had Github a long time. I think its time to go shopping