一键导入
vscode-server-bootstrap
Diagnose and preinstall the VS Code Stable Server on a Linux or Windows Remote-SSH host when automatic downloads fail behind a proxy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Diagnose and preinstall the VS Code Stable Server on a Linux or Windows Remote-SSH host when automatic downloads fail behind a proxy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | vscode-server-bootstrap |
| description | Diagnose and preinstall the VS Code Stable Server on a Linux or Windows Remote-SSH host when automatic downloads fail behind a proxy. |
Use this skill only for the repository's supported scope: a Linux or Windows remote host, VS Code Stable, Remote-SSH Exec Server mode, default ~/.vscode-server, and x64 or arm64.
Determine the exact VS Code commit required by Remote-SSH, verify that the remote host is in scope, and run install-vscode-server.py without guessing or expanding the installer interface.
On machine A, obtain the commit from code --version. Prefer the Using commit id "..." and quality "stable" line in the Remote - SSH output when available.
Reject ordinary semantic versions such as 1.xx.x; the installer requires the 40-character commit.
On machine B, verify one supported environment:
uname -s is Linux; uname -m is x86_64, amd64, aarch64, or arm64.[System.Environment]::OSVersion.Platform identifies Windows; $env:PROCESSOR_ARCHITECTURE is AMD64 or ARM64.Inspect HTTPS_PROXY, https_proxy, HTTP_PROXY, http_proxy, ALL_PROXY, and all_proxy. Never print proxy passwords. Do not invent a proxy value.
Confirm curl or curl.exe is available when practical. The installer prefers curl and falls back to Python urllib.
Run one of:
python3 install-vscode-server.py <commit>
py -3 .\install-vscode-server.py <commit>
Confirm the platform-specific files exist:
node and bin/code-server.node.exe and bin/code-server.cmd.Ask the user to retry Remote-SSH and inspect its output. Success means it reuses the existing server rather than downloading the full server again.
quality "insider", stop: unsupported.remote.SSH.useExecServer is false, stop: unsupported legacy layout.Linux:
uname -s
uname -m
python3 --version
env | grep -iE '^(https?_proxy)=' | sed -E 's#(://[^:/]+:)[^@]+@#\1***@#'
ls -la ~/.vscode-server/cli/servers/Stable-<commit>/
~/.vscode-server/cli/servers/Stable-<commit>/server/node --version
Windows PowerShell:
[System.Environment]::OSVersion.VersionString
$env:PROCESSOR_ARCHITECTURE
py -3 --version
Get-ChildItem Env:HTTP_PROXY,Env:HTTPS_PROXY -ErrorAction SilentlyContinue |
ForEach-Object { $_.Name + '=<' + ($(if ($_.Value) { 'set' } else { 'empty' })) + '>' }
$server = "$HOME\.vscode-server\cli\servers\Stable-<commit>\server"
Get-ChildItem "$HOME\.vscode-server\cli\servers\Stable-<commit>" -Force
& "$server\node.exe" --version
Also capture the relevant section of the VS Code Remote - SSH output containing the requested commit, quality, detected remote platform, and the first download/start failure. Avoid collecting unrelated secrets or full environment dumps.