Git: git@gitlab.com: Permission denied (publickey) with VSC 😭

Happy to hear that, @eyupcimen - thanks for letting us know! :blush:

Tone thanks it worked for me

1 Like

For those who is also searching for a solution of a subject.

Sometime I installed git-scm for a git in Windows 10, which (as I found) uses builtin ssh client, but I configured Windows OpenSSH component’s ssh-agent, which is not used by git-scm. To force git-scm to use OpenSSH you should run the following command:

git config --global core.sshCommand "C:\\Windows\\System32\\OpenSSH\\ssh.exe"

Hope this helps.

1 Like