SSH & quot; Write failed: Broken pipe & quot; timeout-related issue fixed, sshpipe

Source: Internet
Author: User

SSH "Write failed: Broken pipe" timeout issue fixed, sshpipe

Bloggers are keen on a variety of Internet technologies. They are often nagging and often accompanied by obsessive-compulsive disorder and are often updated. If they think that the articles are helpful to you, they can pay attention to me. For more information, see "Deep Blue Sickle"

When using ssh, the error message "Write failed: Broken pipe" is often prompted because ssh is not operated for a period of time, and then you have to log on to ssh again.

The reason is that it exceeds the time required by the client to send a response. You only need to configure SSH on the server.

Open/etc/ssh/sshd_config

vim /etc/ssh/sshd_config 

Configure the following two items

ClientAliveInterval 360 ClientAliveCountMax 10

Where ClientAliveIntervalIndicates the allowed time-out interval (in seconds ), ClientAliveCountMaxIndicates the number of times timeout is allowed. In combination, timeout is allowed for 360*10 seconds (1 hour)

Restart the following ssh services

service sshd restart

Stopping sshd: [OK]

Starting sshd: [OK]


Done.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.