首页 > 解决方案 > 带有远程 SSH 的 Chromebook Penguin 上的 VS Code:无法建立与“servername”的连接,VS Code Server 无法启动

问题描述

我在 Acer Chromebook R11 上的 Penguin 上安装了 VS 代码。

我在这里按照 Debian 的步骤操作:https ://code.visualstudio.com/docs/setup/linux

它就像一个魅力,但我需要使用 Microsoft 的官方扩展 RemoteSSH 连接到我的远程开发服务器。

然后我为具有正确权限的用户配置了一个 .ssh 文件夹:https ://gist.github.com/grenade/6318301

现在我得到:

Could not establish conntection to the "servername", the VS Code Server failled to start

详细的日志是:

[11:39:39.572] Resolver error: The VS Code Server failed to start
[11:39:39.609] TELEMETRY: {"eventName":"resolver","properties":{"outcome":"failure","reason":"ExitCode","askedPw":"0","askedPassphrase":"1","asked2fa":"0","askedHostKey":"0","gotUnrecognizedPrompt":"0","remoteInConfigFile":"1"},"measures":{"resolveAttempts":1,"exitCode":32,"retries":1}}
[11:39:39.620] ------

我不知道它可能是什么。你是否有一个 ?

标签: sshvisual-studio-coderemote-servergoogle-chrome-oschromebook

解决方案


我遇到了类似的问题,我通过删除在我的服务器上创建的“.vscode-server”目录解决了这个问题。这是一个在主目录中创建的隐藏目录(您可以使用“ls -la”来显示我认为的所有文件)。我的预感是那里缓存了一些不正确的数据,因此删除目录将为您提供一个干净的状态。

删除后,您可以尝试通过 vscode 上的 remote-ssh 再次连接。


推荐阅读