代码之家  ›  专栏  ›  技术社区  ›  Houman

如何通过SSH连接到计算引擎?

  •  0
  • Houman  · 技术社区  · 7 年前

    cat ~/.ssh/id_rsa.pub

    enter image description here

    但我还是无法用ssh连接到它。我是否需要先启用其他步骤或防火墙设置?

    1 回复  |  直到 7 年前
        1
  •  1
  •   David    7 年前

    就像 gcloud compute ssh 还有一个 gcloud compute scp 命令

    ~/.ssh/google_compute_engine ,因此,如果需要,您可以直接使用scp或ssh,例如:

    ssh -i ~/.ssh/google_compute_engine houmie@INSTANCE_IP