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.

Cloning fails due to authentication error

See original GitHub issue

I get errors on all my repos, even the public ones when running

all-repos-clone --config-filename all-repos.json --jobs 1

My config is

{
    "output_dir": "output",
    "source": "all_repos.source.github",
    "source_settings":  {
        "api_key": "hexadecimal-stuff-from-github-settings-page",
        "username": "CodingSpiderFox"
    },
    "include": "",
    "exclude": "^(gecko-dev)$",
    "push": "all_repos.push.github_pull_request",
    "push_settings": {
        "api_key": "hexadecimal-stuff-from-github-settings-page",
        "username": "CodingSpiderFox"
    }
}

Example error output is:

Initializing CodingSpiderFox/maintenance-tools
Initialized empty Git repository in /home/user/gitrepos/output/CodingSpiderFox/maintenance-tools/.git/
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Error fetching output/CodingSpiderFox/acx100-acx-mac80211
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Error fetching output/CodingSpiderFox/ardour-sessionparser
Warning: Permanently added the RSA host key for IP address '140.82.118.3' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
CodingSpiderFoxcommented, Dec 20, 2019

Thanks for the advice 😃

0reactions
domporteracommented, Apr 8, 2022

Fixed!

I fixed it, very dumb move on my end and totally irrelevant for you so sorry to bother! But in case anyone else is new to SSH for the sake of this amazing tool, here was the issue:

I didn’t save my SSH keys to the default directory (~/.ssh) with the default names (id_rsa & id_rsa.pub). I didn’t see any warnings regarding this in the set-up instructions I was following, but it turns out it’s critical for authentication to persist between ssh-agent processes.

Thank you for making this by the way, it’s a total life saver and an absolute public good. and I appreciate your patience!

Read more comments on GitHub >

github_iconTop Results From Across the Web

git clone: Authentication failed for <URL> - Stack Overflow
Go to Control Panel\All Control Panel Items\Credential Manager and select Generic Credentials. · Remove all the credential with your company ...
Read more >
Authentication failed when cloning from GitHub - Documentation
If you see the Authentication failed error message when cloning a repository from GitHub, check if you have GitHub two-factor authentication ...
Read more >
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 >
Authentication keeps failing while trying to clone a git ...
Authentication keeps failing while trying to clone a git repository from OCI to Local. I've tried my username in the formats "TenancyName/ ...
Read more >
Authentication failed while cloning repository from bit bucket
Solved: I am getting following authentication failed error while cloning repo from bit bucket. $ git clone.
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