Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ubuntu终端使用gcloud compute ssh冻结_Ubuntu_Ssh_Gcloud - Fatal编程技术网

ubuntu终端使用gcloud compute ssh冻结

ubuntu终端使用gcloud compute ssh冻结,ubuntu,ssh,gcloud,Ubuntu,Ssh,Gcloud,在我使用“gcloud compute ssh”ssh进入计算引擎实例后,终端在约2分钟的不活动后冻结,迫使我关闭终端并再次ssh。。。 你知道是什么原因造成的,或者如何修复它吗?工作的时候真的很烦人。 谢谢 jaime正如Adrián所评论的,ServerAliveInterval是关键。 您可以在/etc/ssh/ssh_-config中设置,或者像我在~/.ssh/config中所做的那样设置。您是否尝试将类似于ServerAliveInterval 60的内容添加到本地计算机中的/etc

在我使用“gcloud compute ssh”ssh进入计算引擎实例后,终端在约2分钟的不活动后冻结,迫使我关闭终端并再次ssh。。。 你知道是什么原因造成的,或者如何修复它吗?工作的时候真的很烦人。 谢谢
jaime

正如Adrián所评论的,ServerAliveInterval是关键。
您可以在/etc/ssh/ssh_-config中设置,或者像我在~/.ssh/config中所做的那样设置。您是否尝试将类似于
ServerAliveInterval 60
的内容添加到本地计算机中的
/etc/ssh/ssh_-config
文件中?这将每60秒发送一次数据包以保持连接。先生。。。你是个天才!