【发布时间】:2018-08-16 13:20:50
【问题描述】:
我一直在我的 macOS 上通过 gcloud ssh 连接到 Google Cloud VM 实例:
$ gcloud compute ssh [username]@[instance]
从一周前开始,连接会在大约 60 秒的空闲连接后断开并返回:
Connection to [my_external_ip] closed by remote host.
Connection to [my_external_ip] closed.
ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].
我在我的 macbook 和 VM 上都将 TCP keepalive 时间配置为 30 秒。但这并没有解决问题。
知道如何延长连接持续时间吗?
【问题讨论】:
标签: ssh google-cloud-platform google-compute-engine gcloud tcp-keepalive