是否可以通过ssh使用Google Cloud Shell? [英] Is it possible to use the Google Cloud Shell via a ssh?
问题描述
是否可以通过ssh连接到Google Cloud Shell实例?也许以某种方式使用gcloud?因此,我可以在我最喜欢的终端(尤其是iTerm)上使用它,而不能在基于Web的外壳上使用它.
Is it possible to connect to the Google Cloud Shell instance via the ssh? Maybe somehow with gcloud? So I can use it with my favorite terminal (iTerm in particular) and not with the Web-based shell.
Answer: yes it is now been possible: https://cloud.google.com/blog/products/gcp/introducing-the-ability-to-connect-to-cloud-shell-from-any-terminal
推荐答案
是.在 gcloud CLI 中,运行gcloud alpha cloud-shell ssh
.这将与Cloud Shell建立交互式SSH会话.
Yes. From the gcloud CLI, run gcloud alpha cloud-shell ssh
. This will establish an interactive SSH session with Cloud Shell.
请注意,一旦此功能从 Alpha 毕业,此命令可能会更改.
Note, this command may change once this feature graduates from Alpha.
参考:
这篇关于是否可以通过ssh使用Google Cloud Shell?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!