解决ssh的"Write failed: Broken pipe"问题
来源:互联网 发布:pla算法 编辑:程序博客网 时间:2024/06/05 17:54
一下内容来自: http://www.cnblogs.com/dudu/archive/2013/02/07/ssh-write-failed-broken-pipe.html
解决ssh的"Write failed: Broken pipe"问题
问题场景
服务器环境:阿里云 Linux CentOS 主机
客户端:Mac OSX Terminal
问题现象
用 ssh 命令连接服务器之后,如果一段时间不操作,再次进入 Terminal 时会有一段时间没有响应,然后就出现错误提示:
Write failed: Broken pipe
只能重新用 ssh 命令进行连接。
解决方法
方法一:如果您有多台服务器,不想在每台服务器上设置,只需在客户端的 ~/.ssh/ 文件夹中添加 config 文件,并添加下面的配置:
ServerAliveInterval 60
方法二:如果您有多个人管理服务器,不想在每个客户端进行设置,只需在服务器的 /etc/ssh/sshd_config 中添加如下的配置:
ClientAliveInterval 60
方法三:如果您只想让当前的 ssh 保持连接,可以使用以下的命令:
$ ssh -o ServerAliveInterval=60 user@sshserver
方法来源
0 0
- 解决ssh的"Write failed: Broken pipe"问题
- 解决ssh的"Write failed: Broken pipe"问题
- 解决ssh的"Write failed: Broken pipe"问题
- 解决ssh的"Write failed: Broken pipe"问题
- 解决ssh的"Write failed: Broken pipe"问题
- 解决ssh的"Write failed: Broken pipe"问题
- 解决ssh的"Write failed: Broken pipe"问题
- 解决ssh的"Write failed: Broken pipe"问题
- 解决ssh的"Write failed: Broken pipe"问题
- ssh--write failed broken pipe
- SSH write failed broken pipe
- SSH "Write failed:Broken pipe"超时相关问题修复
- 阿里云SSH "Write failed: Broken pipe"的问题解决方法
- 解决Linux搭建sftp出现Write failed:Broken pipe的问题
- 解决ssh Write failed: Broken pipe Bad owner or permissions on ssh config
- ssh远程登录失败"Write failed:Broken pipe"
- 服务器SSH登陆错误:Write failed: Broken pipe
- ssh 设置超时时间 Write failed: Broken pipe
- Report报表对数据进行分组显示
- 网络字节序和本地字节序相互转换
- 正则表达式 EditPlus
- 字符串-01. 在字符串中查找指定字符(15)
- 利用Socket函数创建一个网络套接字
- 解决ssh的"Write failed: Broken pipe"问题
- Android 开源框架Universal-Image-Loader完全解析(二)--- 图片缓存策略详解
- ZeroMQ线程通讯
- 【Gateway安装】Windows 下 已存在DB10gR2 安装Gateway11gR2 for sybase
- qt中文乱码
- Java IO流
- andriod 实现新浪、QQ空间、微信朋友圈、微信好友分享功能
- 恢复Win7里管理员的权限到默认状态
- USB设备firmware