【发布时间】:2020-08-09 02:26:01
【问题描述】:
当我使用以下命令设置 ssh 隧道时,我收到以下错误,我无法解决。
命令:gcloud compute ssh --zone=us-east1-d --ssh-flag="-D" --ssh-flag="10000" --ssh-flag="-N" "spark-01-m"
C:\Users\ssv1>gcloud compute ssh --zone=us-east1-d --ssh-flag="-D" --ssh-flag="10000" --ssh-flag="-N" "spark-01-m"
ERROR: (gcloud.compute.ssh) You do not currently have an active account selected.
Please run:
$ gcloud auth login
to obtain new credentials, or if you have already logged in with a
different account:
$ gcloud config set account ACCOUNT
to select an already authenticated account to use.
【问题讨论】:
-
错误信息告诉你该怎么做。您是否尝试按照这些说明进行操作?发生了什么?
-
注意:对 SSH 使用特殊标志通常不适用于 Windows。阅读 gcloud 启动的程序 Putty 的文档。但是,您需要先正确设置 Google Cloud SDK。 cloud.google.com/sdk/docs/quickstart-windows
标签: apache-spark ssh google-cloud-platform gcloud