I created the ssh key, added it on gitlab, and followed the instructions. When I do a push from git bash everything works fine, it keeps annoying me to enter the passphrase every time. But when I try to push from vsCode it doesn't ask me for the passphrase and throws an error
Git: git@gitlab.com: Permission denied (publickey,keyboard-interactive).
Is there any way to fix this? And bonus help: how can I stop it from asking me every time for the passphrase.
I know, there are similar questions around for my bonus help, but I couldn't find anything about the vsCode issue. I am using windows 11.
Sorry if the title is misleading.
But when I try to push from vsCode it doesn't ask me for the passphrase and throws an error
It will ask you, starting with VSCode 1.72 (Sept. 2022) :
When an SSH key with a passphrase is used for Git operations, VS Code will now display the quick input control so that you can enter the passphrase for the SSH key.
The passphrase is not cached and has to be entered every time a Git operation is performed.
Using an ssh-agent should help avoiding the passphrase (more than once per session). See " VScode on OSX - GIT ssh key passphrase - working from build in terminal put not from command palette ".
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.