ssh - 带有远程 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] ------
我不知道它可能是什么。你是否有一个 ?
解决方案
我遇到了类似的问题,我通过删除在我的服务器上创建的“.vscode-server”目录解决了这个问题。这是一个在主目录中创建的隐藏目录(您可以使用“ls -la”来显示我认为的所有文件)。我的预感是那里缓存了一些不正确的数据,因此删除目录将为您提供一个干净的状态。
删除后,您可以尝试通过 vscode 上的 remote-ssh 再次连接。
推荐阅读
- flutter - 使用颤振从 Firebase Firestore 检索数据
- python - 如果它们存在于两个 csv 文件中,如何返回列表
- python - QT5 Widget 的 Python 3.7 屏幕截图为黑色
- css - 使用 CSS 网格从卡片后溢出的内容
- python - 将有序字典转换为不同的格式
- javascript - React Material UI:“主题”未定义 no-undef
- python - 如何将值从文件插入字典
- javascript - Qt 资源 .js 文件无法在发布模式下加载
- regex - pd.str.extract() 和 re.search() 的不同输出
- java - 为什么来自 maven repo 的库无法编译?