Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/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
Google cloud platform 在Windows VM实例上远程运行脚本的最佳方式是什么?_Google Cloud Platform_Virtual Machine_Google Compute Engine - Fatal编程技术网

Google cloud platform 在Windows VM实例上远程运行脚本的最佳方式是什么?

Google cloud platform 在Windows VM实例上远程运行脚本的最佳方式是什么?,google-cloud-platform,virtual-machine,google-compute-engine,Google Cloud Platform,Virtual Machine,Google Compute Engine,例如,在Linux VM实例中,我们可以使用gcloud beta-ssh命令通过使用gcp凭据下载ssh密钥来远程运行命令 类似地,我希望在Windows VM实例上远程运行脚本,而不必对实例执行RDP 是否有人可以指出此问题的解决方案?如果您有带PowerShell的Windows工作站,则可以通过远程PowerShell会话连接到Windows服务器实例。此过程类似于使用SSH连接到Linux实例。请查看“使用PowerShell终端连接到Windows实例” CLIgcloud beta

例如,在Linux VM实例中,我们可以使用
gcloud beta-ssh
命令通过使用gcp凭据下载ssh密钥来远程运行命令

类似地,我希望在Windows VM实例上远程运行脚本,而不必对实例执行RDP


是否有人可以指出此问题的解决方案?

如果您有带PowerShell的Windows工作站,则可以通过远程PowerShell会话连接到Windows服务器实例。此过程类似于使用SSH连接到Linux实例。请查看“使用PowerShell终端连接到Windows实例”


CLI
gcloud beta ssh
确实使用ssh密钥。谷歌没有针对Windows实例的类似解决方案。Windows Server确实包含一个SSH服务器,您可以将其设置为支持远程SSH会话。Azure具有VM扩展。GCP有类似的解决方案吗?谷歌没有针对Windows实例的类似解决方案。
gcloud compute connect to serial port instance-1
此命令可以运行脚本吗?串口可以运行有限的一组命令。你所说的脚本是什么意思?一般来说,你不能运行大多数类型的脚本。