how to resolve Git public key permission error within VSCODE

Asked

Viewed 364 times

-1

My vscode does not allow you to exchange data between Git and Github (push, pull and Sync), and this only happens when I use the vscode tools (when I open the "Ctrl shift p" search bar, or when I press the sync icon), returning an error in the publish key, and works normally on the integrated terminal or on the git terminal:

inserir a descrição da imagem aqui

However, as said, it works perfectly on the terminal, because, I’ve configured and used my git a lot:

inserir a descrição da imagem aqui

1 answer

1

Your SSH key has password and this is not supported by Visual Studio Code (and great majority of the other editors also not, including those of Jetbrains).

One possible solution is to generate new passless SSH keys and add them to your Github account.

If this is not an option, try using the HTTPS authentication instead of SSH. You can do this by updating the address of remote:

git remote set-url origin https://github.com/USUÁRIO/REPOSITÓRIO.git

Browser other questions tagged

You are not signed in. Login or sign up in order to post.