博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ssh 链接服务器出现 Write failed: Broken pipe
阅读量:6157 次
发布时间:2019-06-21

本文共 1067 字,大约阅读时间需要 3 分钟。

方法来源 

I started to get this error “Write failed: Broken pipe” when I was leaving the terminal alone.

Since plumbers are still expensive, despite the crisis, I decided to fix the pipe by myself.
Very easy, just add the following line to /etc/ssh/sshd_config:

ClientAliveInterval 60

This will send a “keep-alive” packet from the server to the terminal client every 60 seconds so that the connection doesn’t get dropped.

If you can’t fix it on the server, for example if you don’t have administrative rights, you can fix your client to send the “keep-alive” packet to the server every 60 seconds, adding this line to ~/.ssh/config

ServerAliveInterval 60

It’s also possible to specify the ServerAliveInterval at the ssh command line:

$ ssh -o ServerAliveInterval=60 user@sshserver

More info about ClientAliveInterval and ServerAliveInterval can be found typing at the command line:

$ man 5 sshd_config$ man 5 ssh_config$ man ssh

Another reference  

Your pipes should be safe now, and the plumbers out of business.

转载于:https://www.cnblogs.com/tooyoungtoosimple/p/5149795.html

你可能感兴趣的文章
CUDA学习(六十三)
查看>>
与登录shell相关的文件
查看>>
Git 初次学习笔记
查看>>
Java线程:线程交互
查看>>
dbms_metadata.get_ddl的使用总结
查看>>
修改SSO管理员密码
查看>>
QCwindows server 2003部署
查看>>
批量修改密码脚本
查看>>
关于盘符里某些文件夹删除不了的解决方案研究
查看>>
lzg_ad:XPE操作系统镜像尺寸优化
查看>>
GlusterFS架构与维护
查看>>
全天下最经典的句子,2013重现!
查看>>
Microsoft Windows 7.0 build 7000 NAP测试--健康状态检测验证报告
查看>>
容器间通信的三种方式 - 每天5分钟玩转 Docker 容器技术(35)
查看>>
Linux权限管理总结(1)--基础权限
查看>>
sql server常用函数
查看>>
64位Outlook 无法与OC集成
查看>>
Unity3d切水果,坦克,投篮游戏视频
查看>>
Linux命令TOP TEN
查看>>
多样化实现Windows Phone 7本地数据访问<3>——DB4O
查看>>