分页: 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