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

今天重装完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

展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客
应支付0元
点击重新获取
扫码支付

支付成功即可阅读