Skip to content

GitHub Desktop 1.0.1 Logged in but get authentication failure on push or pull #2847

Closed

Description

@e76nystrom

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?

Activity

  1. added
    bug
    on Sep 23, 2017
  2. e76nystrom commented on Sep 24, 2017

    @e76nystrom
    Author

    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?

  3. e76nystrom commented on Sep 24, 2017

    @e76nystrom
    Author

    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.

  4. shiftkey commented on Sep 24, 2017

    @shiftkey
    Member

    @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.

  5. heyimalex commented on Oct 11, 2017

    @heyimalex

    Simple fix (if you don't care about ssh vs https) is to change the remote's url. For anyone else who lands here.

  6. gtkpr commented on Oct 21, 2017

    @gtkpr

    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?

  7. joshaber commented on Oct 23, 2017

    @joshaber
    Contributor

    @gtkpr Could you create a new issue and fill out the issue template please? Thanks!

  8. gtkpr commented on Oct 24, 2017

    @gtkpr

    @joshaber i'm not even going to bother. already uninstalled it. i'll just do my stuff via browser.

  9. jborn commented on Jan 15, 2018

    @jborn

    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.

  10. joshaber commented on Jan 16, 2018

    @joshaber
    Contributor

    @jborn Please open a new issue and fill out the issue template so that we're better able to help you.

  11. locked as resolved and limited conversation to collaborators on Jul 18, 2018
  12. unlocked this conversation on Sep 27, 2018
  13. Rodge commented on Mar 7, 2019

    @Rodge

    For me it helped by simply logging out and in again (in File -> Options).

  14. leonardosantoslopes commented on Mar 23, 2019

    @leonardosantoslopes

    As Rodge said, logging out and logging in back.

    It worked.

  15. qysnn commented on Apr 10, 2019

    @qysnn

    Yes. After hours of search I finally solved it by logging out and log in again. That is frustrating.

  16. whiteboxgaming commented on Mar 20, 2021

    @whiteboxgaming

    Im having same issue and I've had Github a long time. I think its time to go shopping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions