ssh 传输中断 , 报错 “Write failed: Broken pipe”

ssh 传输中断 , 报错 “Write failed: Broken pipe”

解决办法:

//编辑文件:

1
vi /etc/ssh/sshd_config

//在内容末尾添加如下语句:

1
ClientAliveInterval 60

//保存后重启服务:

1
systemctl restart sshd.service
如果crontab有设置每小时重启 也需要关闭

Leave a Reply

Your email address will not be published. Required fields are marked *