是否可以通过ssh使用Google Cloud Shell? [英] Is it possible to use the Google Cloud Shell via a ssh?

查看:263
本文介绍了是否可以通过ssh使用Google Cloud Shell?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆