【发布时间】:2018-03-21 02:50:23
【问题描述】:
我在使用新的 ssh-to-Cloud-Shell-instance 命令时遇到问题,并尝试重置它几次,但均未成功。
我通过以下方式连接:
gcloud alpha cloud-shell ssh
几分钟后,我失去了 gcloud 身份验证,这意味着我必须重新进行身份验证,这不是预期的行为:
几分钟后运行gcloud info 显示没有活动帐户:
Account: [None]
Project: [None]
我可以通过将服务帐户密钥文件放在我的主目录中并在 bashrc 文件中添加一行以使其在我登录时进行身份验证来解决此问题,但这感觉不对。 几分钟后这又失败了:
Unable to connect to the server: error executing access token command "/google/google-cloud-sdk/bin/gcloud config config-helper --format=json": err=exit status 1 output=
【问题讨论】: