我昨天创建了几个 GCP 虚拟机实例,所有实例都使用相同的配置,但运行不同的任务。
我可以通过 GCP 控制台通过 SSH 连接到这些实例,它们都工作正常。
今天我想检查任务是否已完成,但我无法再通过浏览器 SSH 到任何这些实例...错误消息如下:
Connection via Cloud Identity-Aware Proxy Failed
Code: 4010
Reason: destination read failed
You may be able to connect without using the Cloud Identity-Aware Proxy.
因此,我在禁用 Cloud Identity-Award 代理的情况下重试。但随后它写道:
Connection Failed
An error occurred while communicating with the SSH server. Check the server and the network configuration.
Running
gcloud compute instances list
显示了我的所有实例,状态是RUNNING
。
但当我跑的时候
gcloud compute instances get-serial-port-output [instance-name]
使用从上述命令返回的 [instance-name]。 (这是为了检查实例的启动盘是否已用完可用空间。)
它回来了
(gcloud.compute.instances.get-serial-port-output) Could not fetch serial port output: The resource '...' was not found
一些额外的信息:
我从同一互联网(我的家庭互联网)访问虚拟机实例,其他一切都相同
我是该项目的所有者
我的帐户正在使用 GCP 免费试用,并有 300 美元的赠金
这些实例的机器类型为 c2-standard-4,并使用 Linux 深度学习
gcloud 配置对我来说很合适:
$ gcloud config list
[component_manager]
disable_update_check = True
[compute]
gce_metadata_read_timeout_sec = 5
[core]
account = [my_account]
disable_usage_reporting = True
project = [my_project]
[metrics]
environment = devshell
Update:
我重置了其中一个实例,现在我可以成功通过 SSH 连接到该实例。但是,实例上运行的作业在重置后停止。
我想保持作业在其他实例上运行。有没有办法通过 SSH 连接到其他实例而无需重置?