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

今天重装完win10,用vscode连接远程代码库提示错误

vscode 远程开发 提示 could not establish connection to

[18:03:16.473] Log Level: 2
[18:03:16.480] [email protected]
[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

vscode 远程开发 提示 could not establish connection to

vscode 远程开发 提示 could not establish connection to

你可能感兴趣的:(vscode 远程开发 提示 could not establish connection to "".Connecting was canceled.)