Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code &引用;“连接超时”;将vscode连接到gcloud云shell时出错_Visual Studio Code_Gcloud_Google Cloud Shell - Fatal编程技术网

Visual studio code &引用;“连接超时”;将vscode连接到gcloud云shell时出错

Visual studio code &引用;“连接超时”;将vscode连接到gcloud云shell时出错,visual-studio-code,gcloud,google-cloud-shell,Visual Studio Code,Gcloud,Google Cloud Shell,我已经为vscode设置了云shell,如中所示;但是,它停止了与远程shell的连接,并且最初只连接了一次。没有发生VS代码版本更改。当前VSCode版本为1.46.1 下面是抛出的日志- [13:31:22.078] Log Level: 2 [13:31:22.086] remote-ssh@0.51.0 [13:31:22.086] win32 x64 [13:31:22.093] SSH Resolver called for "ssh-remote+cloud-shell&

我已经为vscode设置了云shell,如中所示;但是,它停止了与远程shell的连接,并且最初只连接了一次。没有发生VS代码版本更改。当前VSCode版本为1.46.1 下面是抛出的日志-

[13:31:22.078] Log Level: 2
[13:31:22.086] remote-ssh@0.51.0
[13:31:22.086] win32 x64
[13:31:22.093] SSH Resolver called for "ssh-remote+cloud-shell", attempt 1
[13:31:22.094] SSH Resolver called for host: cloud-shell
[13:31:22.094] Setting up SSH remote "cloud-shell"
[13:31:23.942] Using commit id "cd9ea6488829f560dc949a8b2fb789f3cdc05f5d" and quality "stable" for server
[13:31:23.945] Install and start server if needed
[13:31:23.951] Checking ssh with "ssh -V"
[13:31:23.957] Got error from ssh: spawn ssh ENOENT
[13:31:23.958] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[13:31:23.962] Got error from ssh: spawn C:\Windows\System32\OpenSSH\ssh.exe ENOENT
[13:31:23.962] Checking ssh with "C:\Program Files\Git\usr\bin\ssh.exe -V"
[13:31:28.385] > OpenSSH_8.3p1, OpenSSL 1.1.1g  21 Apr 2020
[13:31:28.390] Running script with connection command: "C:\Program Files\Git\usr\bin\ssh.exe" -T -D 50396 cloud-shell bash
[13:31:28.412] Terminal shell path: C:\Windows\System32\cmd.exe
[13:31:33.205] > 
[13:31:33.206] Got some output, clearing connection timeout
[13:31:54.348] > ssh: connect to host 34.87.29.174 port 6000: Connection timed out
> 
[13:31:54.764] "install" terminal command done
[13:31:54.765] Install terminal quit with output: ssh: connect to host 34.87.29.174 port 6000: Connection timed out
[13:31:54.766] Received install output: ssh: connect to host 34.87.29.174 port 6000: Connection timed out
[13:31:54.768] Resolver error: The connection timed out
[13:31:54.781] ------

您是否能够使用
gcloud alpha cloud shell ssh
直接连接到cloud shell?我没有尝试过。现在离开系统。将尝试让您知道。您是否能够使用
gcloud alpha cloud shell ssh
直接连接到cloud shell?我没有尝试。现在离开系统。我会尽力让你知道的。