[带有远程SSH的Chromebook Penguin上的VS代码:无法建立与“服务器名称”的连接,VS代码服务器无法启动

问题描述 投票:0回答:1

[我在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] ------

我对可能的情况一无所知。你有一个吗?

ssh visual-studio-code remote-server google-chrome-os chromebook
1个回答
0
投票

我遇到了类似的问题,我通过删除在服务器上创建的“ .vscode-server”目录来解决了该问题。这是在主目录中创建的隐藏目录(您可以使用“ ls -la”显示我相信的所有文件)。我的直觉是一些不正确的数据正在那里缓存,因此删除目录将使您的情况更加干净。

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

© www.soinside.com 2019 - 2024. All rights reserved.