无法通过Google的Cloud Launcher建立到Elasticsearch的隧道

时间:2018-03-13 17:21:47

标签: ssh google-cloud-platform google-compute-engine

我正在尝试建立一个通过谷歌启动器设置的弹性堆栈的隧道。然而,我遇到了这个问题。我尝试过更新的putty / plink。重置它生成的.ssh。 Windows平台。谁知道如何解决?

gcloud compute ssh --ssh-flag=-L9200:localhost:9200 --project=xxxxx --zone=us-central1-f elasticsearch-1-elastic-vm-0

ERROR: (gcloud.compute.ssh) [C:\google-cloud-sdk\google-cloud- 
sdk\bin\sdk\putty.exe] exited with return code [1].

plink:未知选项“-L9200:localhost:9200”

1 个答案:

答案 0 :(得分:0)

你的命令中的'-L'之后缺少一个空格,并且应该使用双引号传递标记,如documentation中所示。

  

gcloud compute ssh --ssh-flag =“ - L 9200:localhost:9200”--project = xxxxx   --zone = us-central1-f elasticsearch-1-elastic-vm-0