microsoft / microsoft/vscode-remote-release
WSL2 vscode git don't use ssh-agent, but works in integrated terminal
Open
Nobody has claimed this yet.
wsl
- Dominant language
- Dockerfile
- Stars
- 4.2k
- Forks
- 470
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
OS: Windows_NT x64 10.0.18363
- VSCode Version: 1.62.3
- Local OS Version: Windows 10 Version 10.0.18363 Build 18363
- Remote OS Version: Debian 11
- Remote Extension/Connection Type: WSL
- WSL git version: 2.30.2
- Logs:
Output > git
> git pull --tags origin master
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Integrated terminal:
echo $SSH_AUTH_SOCK
# >>> /home/username/.ssh/agent.sock
ssh-add -l
# >>> 4096 SHA256:T/00000000000000000000000000000 my_key (RSA)
Steps to Reproduce:
- in integrated terminal launch: git pull --tags origin master. All works
- in vscode:WSL click button SC synchronise change. Permission denied (publickey)
The problem appeared when I upgraded to Debian 11, which updated Git from 2.20 to 2.30.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the Git environment used by the VS Code WSL Source Control Synchronize action with the integrated terminal, using the reported git pull failure, SSH_AUTH_SOCK value, and ssh-add output. Reproduce on Debian 11 with Git 2.30.2 and verify that synchronization uses the available SSH agent without the publickey error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- debian, git
- Domain
- devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100