INTL 3:770/1 3:770/3   
   REPLYADDR theom+news@chiark.greenend.org.uk   
   REPLYTO 3:770/3.0 UUCP   
   MSGID: b7853423   
   REPLY: b28c2bdc   
   PID: SoupGate-Win32 v1.05   
   bob prohaska wrote:   
   > Where does RasPiOS put log files related to ssh connections?   
   >   
   > 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.   
   >   
   > It'd be helpful to examine the client log for clues, but   
   > the logging setup on RasPiOS is very different from   
   > BSD and and I'm unsure where to look.   
   >   
   > The only message displayed on LxTerminal at the RasPiOS end is   
   >   
   > .....   
   > client_loop: send disconnect: Broken pipe   
   > .....   
   >   
   > Thanks for reading, and any guidance!   
      
   It's normally in /var/log/auth.log, but that's for the setup part of SSH   
   where it does authentication. Otherwise in general syslog, as accessed via   
   'journalctl'. You can increase the amount of debug logging in   
   /etc/ssh/sshd_config   
      
   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.   
      
   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   
      
|