有什么方法可以在 windows 中从 powershell 打开 google 云 shell

Is there any way to open the google cloud shell from powershell in windows

我已经安装了 google 云 shell,我想知道是否有任何命令可以从 windows powershell.

TL;DR:使用 Powershell 不行,但是使用普通 CMD 可以。

您可以使用命令 gcloud alpha cloud-shell ssh to open a new session from Powershell to your cloud shell instance using SDK Shell (CMD). Before running the command, be sure that you have installed Cloud SDK for windows 这样您就可以通过 SSH 连接到您的云 Shell 实例。

关于 Powershell,不幸的是基于 Cloud Tools for PowerShell cmdlet reference accessing (ssh) the Cloud Shell using Powershell is not yet supported. You can create a Feature Request in Google Cloud Issue Tracker 请求将此功能添加到 Powershell。