vscode-remote-release
vscode-remote-release copied to clipboard
Remote SSH connection failed
Type: Bug
[13:51:14.866] SSH Resolver called for host: 192.168.5.19 [13:51:14.866] Setting up SSH remote "192.168.5.19" [13:51:14.873] Using commit id "19e0f9e681ecb8e5c09d8784acaa601316ca4571" and quality "stable" for server [13:51:14.873] Extensions to install: [13:51:14.879] Install and start server if needed [13:51:14.883] Checking ssh with "D:\devtools\Ruby33-x64\bin\ssh.exe -V" [13:51:14.886] Got error from ssh: spawn D:\devtools\Ruby33-x64\bin\ssh.exe ENOENT [13:51:14.887] Checking ssh with "C:\Program Files (x86)\VMware\VMware Workstation\bin\ssh.exe -V" [13:51:14.888] Got error from ssh: spawn C:\Program Files (x86)\VMware\VMware Workstation\bin\ssh.exe ENOENT [13:51:14.888] Checking ssh with "C:\WINDOWS\system32\ssh.exe -V" [13:51:14.890] Got error from ssh: spawn C:\WINDOWS\system32\ssh.exe ENOENT [13:51:14.890] Checking ssh with "C:\WINDOWS\ssh.exe -V" [13:51:14.891] Got error from ssh: spawn C:\WINDOWS\ssh.exe ENOENT [13:51:14.891] Checking ssh with "C:\WINDOWS\System32\Wbem\ssh.exe -V" [13:51:14.892] Got error from ssh: spawn C:\WINDOWS\System32\Wbem\ssh.exe ENOENT [13:51:14.893] Checking ssh with "C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe -V" [13:51:14.894] Got error from ssh: spawn C:\WINDOWS\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT [13:51:14.894] Checking ssh with "C:\WINDOWS\System32\OpenSSH\ssh.exe -V" [13:51:14.933] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2
[13:51:14.939] Running script with connection command: "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 53462 "192.168.5.19" sh [13:51:14.942] Generated SSH command: 'type "C:\Users\admin\AppData\Local\Temp\vscode-linux-multi-line-command-192.168.5.19-944175328.sh" | "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 53462 "192.168.5.19" sh' [13:51:14.943] Using connect timeout of 17 seconds [13:51:14.943] Terminal shell path: C:\WINDOWS\System32\cmd.exe [13:51:15.769] > Authorized users only. All activities may be monitored and reported. [13:51:15.769] Got some output, clearing connection timeout [13:51:16.189] > 9904158638ea: running
Script executing under PID: 1718783 [13:51:16.233] > Installing to /root/.vscode-server... [13:51:16.245] > 9904158638ea%%1%%
Downloading with wget
wget is from busybox: no [13:51:16.260] > Program 'wget' is not available or does not appear to support flag '--no-config' [13:51:16.277] > Detected that this version of wget does not support '--no-config'. Will not igno re wget default configuration files. [13:51:19.656] > Download complete [13:51:19.688] > 9904158638ea%%2%% [13:51:19.706] > tar --version: tar (GNU tar) 1.32 Copyright (C) 2019 Free Software Foundation, Inc. 许可证 GPLv3+:GNU GPL 第 3 版或更新版本 https://gnu.org/licenses/gpl.html 这是自由软件:您可以自由地更改并对其重新发布。 在法律所允许的范围内不含任何担保。由 John Gilmore 和 Jay Fenlason 所写。 [13:51:20.290] > code 1.100.0 (commit 19e0f9e681ecb8e5c09d8784acaa601316ca4571) [13:51:20.305] > Starting VS Code CLI... [13:51:20.324] > Spawned remote CLI: 1720040 Waiting for server log...
[13:51:20.352] > Waiting for server log... [13:51:20.398] > Waiting for server log... [13:51:20.429] > Exec server process not found main: 第 418 行:kill: (1720040) - 没有那个进程 [2025-05-09 13:51:21] error This machine does not meet Visual Studio Code Server 's prerequisites, expected either...
- find GLIBCXX >= v3.4.25 (but found v3.4.24 instead) for GNU environments
- find /lib/ld-musl-x86_64.so.1, which is required to run the Visual Studio Co de Server in musl environments 9904158638ea: start exitCode==207== listeningOn==== osReleaseId==kylin== arch==x86_64== vscodeArch==x64== bitness==64== tmpDir==/run/user/0== platform==linux== unpackResult==success== didLocalDownload==0== downloadTime==3437== installTime==587== [13:51:20.446] > serverStartTime==== execServerToken==a111a111-1111-111a-a1a1-a11aa1111a11== platformDownloadPath==cli-alpine-x64== SSH_AUTH_SOCK==== DISPLAY==== 9904158638ea: end [13:51:20.447] Received install output: exitCode==207== listeningOn==== osReleaseId==kylin== arch==x86_64== vscodeArch==x64== bitness==64== tmpDir==/run/user/0== platform==linux== unpackResult==success== didLocalDownload==0== downloadTime==3437== installTime==587== serverStartTime==== execServerToken==a111a111-1111-111a-a1a1-a11aa1111a11== platformDownloadPath==cli-alpine-x64== SSH_AUTH_SOCK==== DISPLAY====
[13:51:20.449] Resolver error: Error: 远程主机不满足运行VS Code服务器的先决条件 at y.ServerInstallError (d:\Users\vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:744694) at p (d:\Users\vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:739113) at t.handleInstallOutput (d:\Users\vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:740589) at t.tryInstall (d:\Users\vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:865534) at async d:\Users\vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:824246 at async t.withShowDetailsEvent (d:\Users\vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:827501) at async A (d:\Users\vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:820760) at async t.resolve (d:\Users\vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:824898) at async d:\Users\vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:1113660 [13:51:20.453] ------
[root@localhost update]# uname -a Linux localhost.localdomain 4.19.90-52.43.v2207.ky10.x86_64 #3 SMP Thu Dec 26 22:42:01 CST 2024 x86_64 x86_64 x86_64 GNU/Linux [root@localhost update]# ldd --version | head -1 ldd (GNU libc) 2.28 [root@localhost update]# rpm -q libstdc++ libstdc++-7.3.0-20220207.45.p02.ky10.x86_64
Extension version: 0.120.0 VS Code version: Code 1.100.0 (19e0f9e681ecb8e5c09d8784acaa601316ca4571, 2025-05-07T12:48:53.763Z) OS version: Windows_NT x64 10.0.19045 Modes: Connection to 'SSH: 192.168.5.19' could not be established 远程主机不满足运行VS Code服务器的先决条件
System Info
| Item | Value |
|---|---|
| CPUs | 12th Gen Intel(R) Core(TM) i5-12400 (12 x 2496) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on 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_graphite: disabled_off video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 31.78GB (7.94GB free) |
| Process Argv | --crash-reporter-id 23564de7-e5d0-44af-bb88-6ccb6ae2cbd9 |
| Screen Reader | yes |
| VM | 13% |
Connection to 'SSH: 192.168.5.19' could not be established 远程主机不满足运行VS Code服务器的先决条件
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
pythonrstrctxt:31112756
nativeloc1:31192215
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
9064b325:31222308
copilot_t_ci:31222730
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
31787653:31262186
3e8i5726:31271747
pythonpulldiag:31298645
996jf627:31283433
pythonrdcb7cf:31303019
usemplatestapi:31297334
7bj51361:31289155
747dc170:31275177
aj496949:31278748
pylancecolor:31303816
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
gendocf:31295004
Same here, opensuse-tumbleweed is also not correctly identified and platformDownloadPath==cli-alpine-x64== is chosen
@Chartman123 If you're also seeing The remote host does not meet the prerequisites for running the VS Code server the issue is not related to the platformDownloadPath. Refer to https://aka.ms/vscode-remote/faq/old-linux and ensure your environment is supported. Also see https://github.com/microsoft/vscode-remote-release/issues/10861, https://github.com/microsoft/vscode-remote-release/issues/10911
[2025-05-09 13:51:21] error This machine does not meet Visual Studio Code Server 's prerequisites, expected either...
find GLIBCXX >= v3.4.25 (but found v3.4.24 instead) for GNU environments find /lib/ld-musl-x86_64.so.1, which is required to run the Visual Studio Co de Server in musl environments
@yupor5 You appear to be running a slim distribution (ie: missing common utilities like kill, an uncommon build of wget).
Could you provide more information on your distribution?
If you believe your system meets the necessary requirements, could you please share what needs to be changed in the check-requirement.sh script to support your specific environment (ie: rpm place libstd in a different spot)? Thank you in advance for your help
cc/ @deepak1556
If you're also seeing
The remote host does not meet the prerequisites for running the VS Code serverthe issue is not related to the platformDownloadPath
@joshspicer As mentioned, I'm running openSUSE Tumbleweed on the remote host, which is a rolling release. All required software versions from your linked article are way higher than the requirements. According to Copilot included in VSCode and the automatically offered help, my issue could be related to the Alpine download path, because that distribution uses musl instead of glibc on openSUSE. That's why I landed here. If I disable remote.SSH.useExecServer I can connect to my remote host.
@Chartman123 - that sounds unrelated to the original issue here then, right? Please open a new issue with your logs if you'd like us to take a peek.
@joshspicer thanks, done in https://github.com/microsoft/vscode-remote-release/issues/10939
I hope you can use CentOS 7 to test your remote system and install an older operating system for testing. It is convenient for you to fix it. It is best to use Go language for remote plugin development. C language has good performance, but there are still significant compatibility issues that need to be compiled on different systems. The version of VSCode I am currently using has also been reduced to 1.96.4, and the version of Remote SSH is 0.116.1. Remote has no problems