Skip to content

Not Fetching from Origin / Error 128 / Windows 10 WSL2 Ubuntu 20.04 #15902

Closed

Description

@PabloOyarzo

The problem

I have a couple of repo's on my Windows 10 file system from which I can push through SSH to my private github desktop.

My ssh keys are fine, ssh -T [email protected] works great, but fetching from Github Desktop doesn't work.

Weird thing is that I can run the command git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin and updates on Github Desktop.

Things that I've tried

  • Log out and login on Github Desktop.
  • Uninstall (Deledted Roaming and AppData folders) and installed it back.
  • Saved again Name and Email on File>Options>Git tab.
  • Changed file permisions to ssh keys on Ubuntu to 744 to test, didnt work so changed it back to 700.

Release version

Version 3.1.3 (x64)

Operating system

Windows 10 Pro 21H2

Steps to reproduce the behavior

No response

Log files

2023-01-10T16:43:05.211Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: REPONAME - PabloOyarzo (has token)
2023-01-10T16:43:05.873Z - error: [ui] git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin exited with an unexpected code: 128.
stderr:
Warning: Permanently added the ECDSA host key for IP address '140.82.114.4' to the list of known hosts.
[email protected]: 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. Some common reasons include:

  • You are not logged in to your account: see File > Options.
  • You may need to log out and log back in to refresh your token.
  • You do not have permission to access this repository.
  • The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
  • If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.
  • If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
  • If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.)
    2023-01-10T16:43:14.442Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: REPONAME - PabloOyarzo (has token)
    2023-01-10T16:43:15.035Z - error: [ui] git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin exited with an unexpected code: 128.
    stderr:
    [email protected]: 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. Some common reasons include:

  • You are not logged in to your account: see File > Options.
  • You may need to log out and log back in to refresh your token.
  • You do not have permission to access this repository.
  • The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
  • If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.
  • If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
  • If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.)

Screenshots

Error:
image


Before and after running command from wsl ubuntu on the repo's dir.

Before:
image

After:
image

Additional context

No response

Activity

  1. PabloOyarzo commented on Jan 10, 2023

    @PabloOyarzo
    Author

    I configured a new key from GIT GUI on Windows and added it to my github account.
    image

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions