如何通过 ssh 进入 Google Cloud Shell?
How to ssh into Google Cloud Shell?
我遇到了一个奇怪的错误:Google 云 shell 的网络 shell 不断地涌出我的输入。 youtube clip of error
'gcloud auth login' 按预期工作。
我想跳过使用网络 shell 并在 mac osx 上使用常规 ssh 进入云 shell 实例。
使用主机名或下面提到的值都可以。
在网络中 shell:
darian_hickman@darianhickmancom:~$ hostname
cs-6724-devshell-vm-9f3fde16-797e-4327-99a7-5c2710f10920-289
darian_hickman@darianhickmancom:~$ domainname (none)
在我的本地终端上:
DarianMac:~ darianhickman$ gcloud compute ssh
darian_hickman@darianhickmancom ERROR: (gcloud.compute.ssh) Could not
fetch instance:
- The resource 'projects/darianhickmancom/zones/us-east1-d/instances/darianhickmancom'
was not found
不支持直接通过 SSH 连接到云 Shell 实例。如果您必须使用自己的 SSH 客户端,我建议查看 Google Compute Engine 实例。
截至 2018 年初,现在可以从终端连接 Google 云 Shell。请参阅 this answer 至 是否可以通过 ssh 使用 Google 云 Shell?
了解详情。
我遇到了一个奇怪的错误:Google 云 shell 的网络 shell 不断地涌出我的输入。 youtube clip of error
'gcloud auth login' 按预期工作。
我想跳过使用网络 shell 并在 mac osx 上使用常规 ssh 进入云 shell 实例。
使用主机名或下面提到的值都可以。
在网络中 shell:
darian_hickman@darianhickmancom:~$ hostname cs-6724-devshell-vm-9f3fde16-797e-4327-99a7-5c2710f10920-289 darian_hickman@darianhickmancom:~$ domainname (none)
在我的本地终端上:
DarianMac:~ darianhickman$ gcloud compute ssh darian_hickman@darianhickmancom ERROR: (gcloud.compute.ssh) Could not fetch instance: - The resource 'projects/darianhickmancom/zones/us-east1-d/instances/darianhickmancom' was not found
不支持直接通过 SSH 连接到云 Shell 实例。如果您必须使用自己的 SSH 客户端,我建议查看 Google Compute Engine 实例。
截至 2018 年初,现在可以从终端连接 Google 云 Shell。请参阅 this answer 至 是否可以通过 ssh 使用 Google 云 Shell? 了解详情。