You are not logged in.
Pages: 1
Hi,
I'm trying to ssh into my server via ssh. But the server gets disconnected frequently with the error "packet_write_wait: Connection to xx.xx.xx.xx port 22: Broken pipe".
It doesn't always happen when the server is idle. Sometimes it happens while I'm still on "nano". I've tried the "ServerAliveInterval" and "ClientAliveInterval" options in both client and server ssh config files.
Contrarily, this problem doesn't happen to all the other users.
I'm using arch linux and the server has ubuntu server 16.04.5 installed.
let me know if you need any log files etc.
thanks in advance
Offline
Few posts below yours…
https://bbs.archlinux.org/viewtopic.php?id=239982
Offline
Adding "IPQoS throughput" to /etc/ssh/ssh_config doesn't work.
Offline
Are you on the same LAN? On the same Subnet? Are you going across the Public Internet? Are you using wireless?
The point being: Is it a reliable connection? Broken Pipes happen to me when I am communicating with my server at home and my ISP has one its bi-hourly hiccups.
A work around is to use tmux or termina so that, at the least, you can reestablish a session and pick up where you left off without loosing your work.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
I use tmux already. It's on the same LAN. Not in the same subnet. Not using the public internet and not on wireless.
The machine is a lab shared machine.
I wanted to use sshfs which seems impossible with this kind of unreliability.
Offline
Moving to the same subnet works but i'm not sure why.
anybody got any idea?
Offline
What is routing between the subnets? Sounds like an over-zealous firewall and faulty state-tracking on a middle device.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Just a hunch, try (as root) sysctl net.ipv4.tcp_ecn=0
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
What is routing between the subnets? Sounds like an over-zealous firewall and faulty state-tracking on a middle device.
It's an institute-wide network so no idea about the level of strictness of the firewall. It does block gaming and *not safe for work* sites.
Just a hunch, try (as root) sysctl net.ipv4.tcp_ecn=0
Right now out of station. will check and tell. By the way what does this command do?
Offline
If it's not congestion, see https://wiki.archlinux.org/index.php/Se … nd_tunnels to mitigate your pain until the local admin has fixed subnet routing.
Offline
By the way what does this command do?
It is a new issue and is a bit obscure. https://wiki.archlinux.org/index.php/Ne … tification
It is a work around for some broken routers that do not respond well to a recent change in the kernel.systemd
Last edited by ewaller (2018-09-15 14:33:21)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Pages: 1