Cloning fails due to authentication error
See original GitHub issueI 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:
- Created 4 years ago
- Comments:15 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the advice 😃
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!