INTL 3:770/1 3:770/3   
   REPLYADDR jj@franjam.org.uk   
   REPLYTO 3:770/3.0 UUCP   
   MSGID: 7f1e18b6   
   REPLY: b7853423   
   PID: SoupGate-Win32 v1.05   
   On 2024-01-12, Theo wrote:   
   > bob prohaska wrote:   
   >> I've got a Pi4 that's dropping individual ssh connections. One   
   >> particular connection out of a dozen or so drops, so it's   
   >> probably related to the server end, not the client.   
   >   
   ...snip...   
   >   
   > But usually a broken pipe means the TCP socket dropped for some reason,   
   > which is not the fault of SSH. It can be due to aggressive timeouts on NAT   
   > routers - mobile networks are notorious for that. Search for 'ssh   
   > keepalive' for details of how to make SSH send null packets back and forth   
   > every so often to prevent timeouts.   
      
   I have   
      
    ServerAliveInterval 30   
      
   in my ~/.ssh/config in the header so it is set for all my connections,   
   precisely because some of my connections were being dropped because of   
   inactivity causing an intermediate firewall/router to close down the   
   connection.   
      
   It's been that way for longer than I care to remember, so my memory is a   
   bit dim, but I know I played around with some other options that didn't   
   always seem to work.   
      
   >   
   > It could also be wifi related, if the wifi dropped out for some while then   
   > eventually the TCP connection would drop.   
   >   
   > If you affected by TCP drops, 'mosh' is a tool that runs on top of SSH that   
   > automatically reconnects and maintains the connection as it was before. It   
   > also does things like caching keystrokes and replaying them when the   
   > connection comes back up.   
   >   
   > Theo   
      
   --- SoupGate-Win32 v1.05   
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)   
   SEEN-BY: 10/0 1 15/0 90/1 103/705 105/81 106/201 128/260 129/305 135/225   
   SEEN-BY: 153/757 7715 218/0 1 601 700 840 870 930 220/70 221/1 6 226/17   
   SEEN-BY: 226/30 100 227/114 229/110 112 113 200 206 307 317 400 426   
   SEEN-BY: 229/428 452 470 550 616 664 700 240/1120 266/512 267/800   
   SEEN-BY: 282/1038 291/111 292/854 301/1 113 812 310/31 320/219 322/757   
   SEEN-BY: 335/364 341/66 342/200 396/45 460/58 633/280 712/848 770/1   
   SEEN-BY: 770/3 100 330 340 772/210 220 230 5020/400 1042 5058/104   
   SEEN-BY: 5075/35   
   PATH: 770/3 1 218/840 221/6 301/1 218/700 229/426   
      
|