首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >remote-containers.attachTorunningContainerFromViewlet VSCode误差

remote-containers.attachTorunningContainerFromViewlet VSCode误差
EN

Stack Overflow用户
提问于 2022-01-12 09:04:35
回答 1查看 993关注 0票数 0

我使用Remote-SSH连接到远程,然后远程主机上的Attach Visual Studio Code给出了一个错误。

代码语言:javascript
复制
[2022-01-12 16:59:07.497] [exthost] [error] Shell server terminated (code: 255, signal: null)
    enter code here
    ssh: Could not resolve hostname local-88-centos0-frp: No such host is known. 
     remote-containers.attachToRunningContainerFromViewlet {"value":"ms-vscode-remote.remote-containers","_lower":"ms-vscode-remote.remote-containers"}
EN

回答 1

Stack Overflow用户

发布于 2022-01-31 05:23:31

当我试图连接我们的实验室服务器时,我也在我的计算机上遇到了这个问题:但是其他人的计算机在试图连接到远程容器时没有弹出这个错误。

代码语言:javascript
复制
Shell server terminated (code: 255, signal: null)

ssh: connect to host xxx.xxx.xxx.xx port 22: Connection refused

好的,最后我找到了解决方案,它可能是vscode远程- SSH扩展上的一个bug。

extension

  • click

  • 单击 Remote-SSH,右击设置
  1. 查找Remote.SSH:配置文件(自定义SSH配置文件的绝对文件路径)。

请将此设置保留为空,默认为. .ssh/config,请在此修改,但此处不输入.

然后我发现我的问题解决了..。希望这能帮助和我一样遇到同样问题的人。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70678804

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档