首页 > 其他 > 详细

ssh超时导致的broken pipe

时间:2019-02-01 12:44:06      阅读:318      评论:0      收藏:0      [点我收藏+]


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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!