码迷,mamicode.com
首页 > 其他好文 > 详细

ssh超时导致的broken pipe

时间:2019-02-01 13:04:44      阅读:335      评论:0      收藏:0      [点我收藏+]

标签:val   item   pad   border   style   end   color   send   ext   


1)Dealing with the client side

First of all, to deal on the client side /etc/ssh/ssh_configor ~/.ssh/configto 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_configto

$ 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

标签:val   item   pad   border   style   end   color   send   ext   

原文地址:https://www.cnblogs.com/cay914/p/10345437.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!