ssh超时导致的broken pipe


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

转载于:https://www.cnblogs.com/cay914/p/10345437.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值