新版VSCODE无法远程连接Linux服务器

42 阅读1分钟

新版VSCODE无法远程连接Linux服务器

经测试,使用 VS Code 1.96.4 和 Remote-SSH v0.117.1 可正常连接旧版Linux系统。

异常版本记录:VS Code 1.97(+) 搭配 Remote-SSH v0.115.x~0.120.x 均出现异常,异常包括无法执行SSH认证和认证后无法打开服务器目录。

官方通知如下:

code.visualstudio.com/docs/remote…

Can I run VS Code Server on older Linux distributions? Starting with VS Code release 1.99 (March 2025), the prebuilt servers distributed by VS Code are only compatible with Linux distributions that are based on glibc 2.28 or later. These include for example, Debian 10, RHEL 8, or Ubuntu 20.04.

VS Code will still allow users to connect to an OS that is not supported by VS Code (OSes that don't have glibc >= 2.28 and libstdc++ >= 3.4.25) via the Remote - SSH extension, if a sysroot with these required library versions is provided. This approach gives you and your organization more time to migrate to newer Linux distributions.

可以在较旧的Linux发行版上运行VS Code服务器吗?

从VS Code 1.99版本(2025年3月)开始,VS Code分发的预构建服务器仅与基于glibc 2.28或更高版本的Linux发行版兼容。例如,这些发行版包括Debian 10、RHEL 8或Ubuntu 20.04。

如果提供了包含这些必需库版本的sysroot,则VS Code仍将允许用户通过Remote - SSH扩展连接到不受VS Code支持的操作系统(即那些没有glibc >= 2.28和libstdc++ >= 3.4.25的操作系统)。这种方法为您和您的组织提供了更多时间来迁移到较新的Linux发行版。

除以上不支持系统外,CentOS7.5~7.8 均使用 glibc2.17,也需使用低版本 VS Code。