ssh超时导致的broken pipe
Posted cay914
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ssh超时导致的broken pipe相关的知识,希望对你有一定的参考价值。
1)Dealing with the client side
First of all, to deal on the client side /etc/ssh/ssh_config
or ~/.ssh/config
to describe the contents of two following.
$ vim ~/.ssh/config ServerAliveInterval 15 ServerAliveCountMax 10
With this setting, we send an acknowledgment ten times to the server every 15 seconds, and
if there is no response timeout occurs.
2)Dealing with the server side
Next, on the server side, there is a corresponding way, but /etc/ssh/sshd_config
to
$ vim / etc / ssh / sshd_config ClientAliveInterval 30 ClientAliveCountMax 5
If you write it, it sends an acknowledgment five times to the client every 30 seconds,
but if there is no response it will time out.
reference:
https://qiita.com/ysk24ok/items/2f4ced5edf306fdd9dfb
以上是关于ssh超时导致的broken pipe的主要内容,如果未能解决你的问题,请参考以下文章
NodeJS Broken Pipe 导致我的 Express api 停止工作
(转) 解决ssh的"Write failed: Broken pipe"问题
解决Linux下ssh登录后出现 报错 Write failed: Broken pipe 的方法
ssh登陆报错:packet_write_wait: Connection to x.x.x.x port 22: Broken pipe
使用git往github上提交代码时出现[packet_write_wait connection to xx.xx.xx.xx Broken pipe]错误的解决办法