分页: 1 / 1

Burst VPS 使用 ssh 停一段时间在去操作老出现 Write failed: Broken pipe 怎么办?

发表于 : 2012-08-23 13:38
jiyinyiyong
出现了 "Write failed: Broken pipe" 然后 ssh 就断了, 重新登录发现用户还是在的, 这是怎么回事啊?
这个问题和 TIMEOUT 的设置有关系么? 我其实是想设置自动退出的.

Re: Burst VPS 使用 ssh 停一段时间在去操作老出现 Write failed: Broken pipe

发表于 : 2012-08-24 22:47
rediscover
burstnet会不定期kill掉长时间不活跃的ssh连接,所以要keepalive的话就搞出来点数据传输。

Re: Burst VPS 使用 ssh 停一段时间在去操作老出现 Write failed: Broken pipe

发表于 : 2012-08-25 21:27
jiyinyiyong
rediscover 写了:burstnet会不定期kill掉长时间不活跃的ssh连接,所以要keepalive的话就搞出来点数据传输。
对啊. 还好后来找到代码解决了.
ServerAliveInterval 60
linux-wiki.cn/wiki/zh-hans/避免SSH连接因超时闲置断开

Re: Burst VPS 使用 ssh 停一段时间在去操作老出现 Write failed: Broken pipe

发表于 : 2012-08-25 22:18
acer4740
mosh可以解决这个问题

Re: Burst VPS 使用 ssh 停一段时间在去操作老出现 Write failed: Broken pipe

发表于 : 2012-08-26 11:18
jiyinyiyong
acer4740 写了:mosh可以解决这个问题
有没有中文的博文介绍.. 搜不到啊楼上

Re: Burst VPS 使用 ssh 停一段时间在去操作老出现 Write failed: Broken pipe

发表于 : 2013-01-02 22:52
freefall12
在/etc/ssh/ssh_config里加上
TCPKeepAlive yes