microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.47k stars 28.1k forks source link

No prompt for SSH passphrase using remote-ssh #166132

Open mjarmstr opened 1 year ago

mjarmstr commented 1 year ago

Type: Bug

Connecting to a linux host from windows using remote-ssh. When I try to push/pull from VSCode, it doesn't work. I have a passphrase on my key and I don't get prompted for it, instead I get and an error with the following in the Git output window.

Access is not allowed because you are not enrolled in Duo. Please contact your organization's IT help desk.

Access is not allowed because you are not enrolled in Duo. Please contact your organization's IT help desk.

Access is not allowed because you are not enrolled in Duo. Please contact your organization's IT help desk.

Permission denied (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).
fatal: Could not read from remote repository.

However I can push/pull from the terminal with the same key just fine.

VS Code version: Code 1.73.0 (8fa188b2b301d36553cbc9ce1b0a146ccb93351f, 2022-11-01T15:34:06.111Z) OS version: Windows_NT x64 10.0.19044 Modes: Sandboxed: No Connection to 'ssh-remote+spiderman' could not be established Remote OS version: Linux x64 3.10.0-1160.31.1.el7.x86_64 Remote OS version: Linux x64 5.4.0-120-generic

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz (12 x 2592)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|31.76GB (13.97GB free)| |Process Argv|| |Screen Reader|no| |VM|0%| Connection to 'ssh-remote+spiderman' could not be established |Item|Value| |---|---| |Remote|SSH: spiderman| |OS|Linux x64 3.10.0-1160.31.1.el7.x86_64| |CPUs|Intel(R) Xeon(R) Gold 6240 CPU @ 2.60GHz (4 x 2593)| |Memory (System)|15.51GB (13.68GB free)| |VM|100%| |Item|Value| |---|---| |Remote|SSH: widow| |OS|Linux x64 5.4.0-120-generic| |CPUs|Intel(R) Xeon(R) Gold 5215 CPU @ 2.50GHz (40 x 1000)| |Memory (System)|62.54GB (33.44GB free)| |VM|0%|
Extensions (35) Extension|Author (truncated)|Version ---|---|--- separators|ale|2.4.1 vscode-eclipse-keybindings|alp|0.16.1 systemd-unit-file|coo|1.0.6 output-colorizer|IBM|0.1.2 better-cpp-syntax|jef|1.16.3 vscode-peacock|joh|4.2.2 dotenv|mik|1.0.1 jupyter-keymap|ms-|1.0.0 remote-ssh|ms-|0.92.0 remote-ssh-edit|ms-|0.84.0 remote-wsl|ms-|0.72.0 remote-explorer|ms-|0.0.2 rewrap|stk|1.16.3 reopenclosedtab|uyi|1.1.0 vscode-icons|vsc|12.0.1 vim|vsc|1.24.3 vscode-todo-highlight|way|1.0.5 githistory|don|0.6.19 gitlens|eam|13.0.4 jenkinsfile-support|ivo|1.1.0 vscode-smart-column-indenter|lmc|0.0.13 git-graph|mhu|1.30.0 vscode-docker|ms-|1.22.2 isort|ms-|2022.6.0 python|ms-|2022.18.2 vscode-pylance|ms-|2022.11.20 jupyter|ms-|2022.9.1202862440 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.12 vscode-jupyter-cell-tags|ms-|0.1.6 vscode-jupyter-slideshow|ms-|0.1.5 ansible|red|1.0.90 vscode-yaml|red|1.10.1 code-spell-checker|str|2.11.0 gitblame|wad|9.0.1 (2 theme extensions excluded)
VSCodeTriageBot commented 1 year ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.73.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

mjarmstr commented 1 year ago

Updated to 1.73.1 and the problem still exists.

maksim-pinguin commented 1 year ago

I can reproduce this with a wsl target -> no prompt for credentails e.g. when fetching a repo vscode-git client will hang (obviously due to expectation for creadentials). Since no prompt is given one has to reload window so git restarts and do every ssh related git command in terminal. btw: when using https as remote prompting for credentails works as expected