Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode does not retrieve SSH passphrase from kwallet/ksshaskpass #242494

Open
Rua opened this issue Mar 3, 2025 · 0 comments
Open

VSCode does not retrieve SSH passphrase from kwallet/ksshaskpass #242494

Rua opened this issue Mar 3, 2025 · 0 comments
Assignees

Comments

@Rua
Copy link

Rua commented Mar 3, 2025

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.97.2 (not installed via flatpak)
  • OS Version: Fedora 41 with KDE 6.3 / NixOS 24.11 with KDE 6.2

ssh-agent is automatically started on boot. I have SSH set up to use kwallet via ksshaskpass:

$ echo $SSH_ASKPASS
/usr/bin/ksshaskpass
$ echo $SSH_ASKPASS_REQUIRE 
prefer

My SSH key uses a passphrase. If I go to a Git repository and do git pull on the terminal, then if the passphrase is already in kwallet, it will immediately perform the operation. Otherwise, the ksshaskpass window pops up to ask for the passphrase. It asks for the passphrase only once, and remembers it even after a restart.

In VSCode, however, if I use the GUI to pull from the same repo, then I get a popup asking me for the passphrase. I can fill it in and it works, but each time I perform a Git operation, it asks me again. It does not remember the passphrase at all, not even within the same session. I can, however, run git pull or whatever in the terminal within VSCode, and that works. Only the VSCode GUI doesn't store/retrieve the passphrase.

If I run ssh-add, then run VSCode, then VSCode will successfully retrieve the passphrase and will not prompt for it. But that only lasts for the current boot, it will not remember after a restart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants