centos Visual Studio程式码远端- SSH联机失败

7fyelxc5  于 2022-11-08  发布在  其他
关注(0)|答案(3)|浏览(196)

因此,我已经能够使用shell通过SSH连接到服务器,现在我尝试使用Visual Studio Code Remote - SSH。SSH连接似乎成功,但随后我得到提示 “无法建立到.. a的连接。VS代码服务器无法启动。"
你知道是什么问题吗?

  • 本地操作系统:Windows 10,自带SSH客户端
  • 远程操作系统:CentOS 7(无sudo权限)
  • 记录档:
[14:39:44.369] > 
Server did not start successfully. Full server log >>>
/users/XXX/.vscode-server/bin/f359dd69833dd8800b54d458f6d37ab7c78df520/server.sh: line 12: 26789 
Aborted                 "$ROOT/node" ${INSPECT:-} "$ROOT/out/vs/server/main.js" "$@"
[14:26:33.056]
<<< End of server log
b65f23a8e10a##32##
[14:26:33.607] "install" terminal command done
[14:26:33.608] Install terminal quit with output: b65f23a8e10a##32##
[14:26:33.608] Received install output: b65f23a8e10a##32##
[14:26:33.611] Resolver error: The VS Code Server failed to start
[14:26:33.618] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"ExitCode","askedPw":"0","askedPassphrase":"0","asked2fa":"0","askedHostKey":"0","gotUnrecognizedPrompt":"0","remoteInConfigFile":"1"},"measures":{"resolveAttempts":1,"exitCode":32,"retries":1}}
[14:26:33.622] ------
  • 遥测格式正确:
{
  "eventName":"resolver",
  "properties": { 
    "outcome":"failure",
    "reason":"ExitCode",
    "askedPw":"0",
    "askedPassphrase":"0",
    "asked2fa":"0",
    "askedHostKey":"0",
    "gotUnrecognizedPrompt":"0",
    "remoteInConfigFile":"1"
  },
  "measures":{
    "resolveAttempts":1,
    "exitCode":32,
    "retries":1
  }
}

谢谢你!

zwghvu4y

zwghvu4y1#

我遇到过类似问题,所以我尝试server.sh从控制台运行www.example.com,该控制台位于:

~/.vscode-server/bin/622**************************/server.sh

我的显示丢失了一个1library
一旦安装,一切工作,因为它应该。

lndjwyie

lndjwyie2#

由于某种原因,SSH服务器不支持VS代码。我通过在~/.ssh/config中创建一个ProxyCommand到另一台内部机器来解决我的问题,这台机器确实支持VS代码。

kse8i1jr

kse8i1jr3#

  • VS代码 文件首选项设置s〉 并搜索 * @ext:ms-vscode-remote.remote-ssh,ms-vscode-remote.remote-ssh-edit config file,然后键入ssh配置文件的绝对文件路径。

相关问题