Can not clone repo using ssh keys #136171
Replies: 5 comments
-
|
Sometimes VS code gives U error. to resolve Use git bash as u know It's powerfull... #coz sometimes VS code terminal Works As normal Terminal not like windows powershell Using git bash to run any git command Will not let u get an error...!!! |
Beta Was this translation helpful? Give feedback.
-
|
Hey i am having the same problem does anyone have a fix |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for posting in the GitHub Community, @3verness! We're happy you're here. You are more likely to get a useful response if you are posting your question in the applicable category, the New to GitHub category is solely related to conversations around getting started on using GitHub and the community for beginners of GitHub, Community on Discussions, and those new to different areas of the product alike! This question should be in the General category. I've gone ahead and moved it for you. Good luck! |
Beta Was this translation helpful? Give feedback.
-
|
Even though your SSH key works (the ssh -T git@github.com proves it), Git sometimes can't find it when cloning. If that clones fine, your SSH setup needs tweaking. If it fails too, you probably don't have access to that repo. If you want to fix SSH properly, create a config file at Host github.com |
Beta Was this translation helpful? Give feedback.
-
|
The issue is that your SSH authentication works fine (confirmed by ssh -T git@github.com), but there may be a conflict with which SSH client Git is using on Windows. If You Want SSH to Work Permanent Fix for SSH Consistency Why this happens: Even though ssh -T git@github.com succeeds (using Windows OpenSSH + your loaded key), Git may fall back to its own SSH client, which doesn't have access to your key — causing the permission denial. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I try to clone a repo in powershell, it shows:
I have followed https://docs.github.com/en/authentication/troubleshooting-ssh/error-permission-denied-publickey to check my problem. But everything seem fine.
I am using vscode terminal on windows:
Beta Was this translation helpful? Give feedback.
All reactions