SSH linked server appears Write Failed:broken pipe

Source: Internet
Author: User

method Source Ssh "Write failed:broken Pipe"-newinstance

I started to get this error "Write Failed:broken pipe" when I am leaving the terminal alone.
Since Plumbers is still expensive, despite the crisis, I decided to fix the pipe by myself.
Very easy, just add the following line to /etc/ssh/sshd_config:

60

This would send a "keep-alive" packet from the server to the terminal client every seconds so, the connection doesn ' t get dropped.

If you can ' t fix it on the server, for example if you don't have administrative rights, you can fix your client to send th E "keep-alive" packet to the server every seconds, adding this line to ~/.ssh/config

60

It ' s also possible to specify the serveraliveinterval at the SSH command line:

$ ssh-o serveraliveinterval= [email protected]

More info about clientaliveinterval and serveraliveinterval can is found typing at the command line:

55  ssh_config$ man ssh

Another reference here

Your pipes should is safe now, and the plumbers out of business.

SSH linked server appears Write Failed:broken pipe

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.