Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make vsCode not ask for gitlab ssh passphrase on push

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: [email protected]: 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.

like image 354
Tinaira Avatar asked Jun 21 '26 15:06

Tinaira


1 Answers

You can save passphrase in the Keychain store.

For mac

ssh-add --apple-use-keychain ~/.ssh/[private-key]

older than 12.0 Monterey

ssh-add -K ~/.ssh/[your-private-key]

Here is similar question .

like image 192
Lukashenko Yevhenii Avatar answered Jun 23 '26 10:06

Lukashenko Yevhenii