vscode 远程开发 提示 could not establish connection to “”.Connecting was canceled.

wsndbd

于 2020-04-02 20:24:16 发布

阅读量3.6w
收藏 15

点赞数 13
版权

华为云开发者联盟
该内容已被华为云开发者联盟社区收录
加入社区
今天重装完win10,用vscode连接远程代码库提示错误

[18:03:16.473] Log Level: 2
[18:03:16.480] remote-ssh@0.51.0
[18:03:16.480] win32 x64
[18:03:16.483] SSH Resolver called for "ssh-remote+9.134.115.130", attempt 1
[18:03:16.484] SSH Resolver called for host: 9.134.115.130
[18:03:16.484] Setting up SSH remote "9.134.115.130"
[18:03:16.511] Using commit id "0ba0ca52957102ca3527cf479571617f0de6ed50" and quality "stable" for server
[18:03:16.512] Install and start server if needed
[18:03:20.246] getPlatformForHost was canceled
[18:03:20.247] Resolver error: Connecting was canceled
[18:03:20.250] ------

解决方法
在remote-ssh的设置里面加入
"remote.SSH.remotePlatform":{
"cloud": "linux",
}

remote-ssh点击设置->extension settings

————————————————

                        版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

原文链接:https://blog.csdn.net/wsndbd/article/details/105278323

未经允许不得转载:lxfamn » vscode 远程开发 提示 could not establish connection to “”.Connecting was canceled.

赞 (0) 打赏

置顶推荐

评论 0

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏