microsoft / microsoft/vscode-remote-release

Git through SSH with passphrase-protected key when in WSL remote

Open
#2,369 29 comments 34 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug wsl
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

  • VSCode Version: 1.42.1
  • Local OS Version: Windows 10
  • Remote OS Version: Ubuntu
  • Remote Extension/Connection Type: WSL

I am trying to use git through SSH in a WSL remote. The SSH connection is protected with a key pair which is password-protected. I open WSL in terminal, I start an SSH agent there and add the key. Then I start VS Code with code . and try to use git But I can't do anything requiring SSH connection. No way to enter passphrase, no way to cancel - I have to restart VS Code.

The same happens when I start ssh-agent and add the key in the terminal window in the VS Code interface.

This is the same as #1774, which was closed as duplicate of microsoft/vscode#13680. But it is really not a duplicate, as the latter issue is said to be resolved with workaround explained here, but the former cannot.

VS Code does not "see" ssh-agent started in WSL.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.