git push never completes when ssh key not named ~/.ssh/id_rsa
See original GitHub issue- VSCode Version: 1.51.1 (stable) and 1.52.0 (Insiders)
- OS Version: Win 10 - 10.0.19041 build 19041
- WSL 2: Ubuntu 20.04
Steps to Reproduce:
- Create new git commit
- Push using the built in Source Control panel Push never completes if ssh key is other name than ~/.ssh/id_rsa. SSH key is loaded and push works as expected in the terminal from the same session. But VSCode can’t complete git push. Renaming the ssh key to id_rsa solves the issue.
“Show Git Output”: Looking for git in: git Using git 2.29.2 from git
git rev-parse --git-dir Open repository: /home/<my>/<app>/<repo> git status -z -u git symbolic-ref --short HEAD git rev-parse master git rev-parse --symbolic-full-name master@{u} git rev-list --left-right master…refs/remotes/origin/master git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) git remote --verbose git config --get commit.template git check-ignore -v -z --stdin git status -z -u git symbolic-ref --short HEAD git rev-parse master git rev-parse --symbolic-full-name master@{u} git rev-list --left-right master…refs/remotes/origin/master git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) git remote --verbose git config --get commit.template git status -z -u git symbolic-ref --short HEAD git rev-parse master git rev-parse --symbolic-full-name master@{u} git rev-list --left-right master…refs/remotes/origin/master git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) git remote --verbose git config --get commit.template git status -z -u git symbolic-ref --short HEAD git rev-parse master git rev-parse --symbolic-full-name master@{u} git rev-list --left-right master…refs/remotes/origin/master git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) git remote --verbose git config --get commit.template git status -z -u git symbolic-ref --short HEAD git rev-parse master git rev-parse --symbolic-full-name master@{u} git rev-list --left-right master…refs/remotes/origin/master git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) git remote --verbose git config --get commit.template git status -z -u git symbolic-ref --short HEAD git rev-parse master git rev-parse --symbolic-full-name master@{u} git rev-list --left-right master…refs/remotes/origin/master git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) git remote --verbose git config --get commit.template git status -z -u git symbolic-ref --short HEAD git rev-parse master git rev-parse --symbolic-full-name master@{u} git rev-list --left-right master…refs/remotes/origin/master git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) git remote --verbose git config --get commit.template git add -A – . git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - git status -z -u git symbolic-ref --short HEAD git rev-parse master git rev-parse --symbolic-full-name master@{u} git rev-list --left-right master…refs/remotes/origin/master git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) git remote --verbose git config --get commit.template git push origin master:master
Does this issue occur when all extensions are disabled?: Yes/No
- Unfortunately, I can’t test this as I only have a Linux based dev environment running in WSL 2 (on Win 10) so the WSL extension has to be enabled.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
It works correctly in the terminal.
same problem +1 I’m using WSL2, and everything goes fine when I changed the key name to id_rsa… Maybe vscode could inherit the SSH environment from bash?