-3

I'm having difficulties with Git in VSCode. In trying to publish a branch or push code to our repository, I'm getting this. Apparently, it used a .git folder above the folder of my project. We're using SSH and I cloned the repo from our AZDevops server using Visual Studio 2022.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for 'C:\\Users\\{ME}/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "C:\\Users\\{ME}/.ssh/id_rsa": bad permissions
CreateProcessW failed error:193
ssh_askpass: posix_spawnp: Unknown error
Permission denied, please try again.
CreateProcessW failed error:193
ssh_askpass: posix_spawnp: Unknown error
Permission denied, please try again.
CreateProcessW failed error:193
ssh_askpass: posix_spawnp: Unknown error
{User ID}: Permission denied (password,publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

My user ID is different than the one shown in this error message and I am unsure where to change it in VSCode.

I have absolutely no problems using Git in Visual Studio 2022. Been using same SSH keys with it since 2021.

0

Browse other questions tagged or ask your own question.