Bug#1087627: openssh-client: Session dies (quickly)

Helge Kreutzmann <[email protected]>
Newsgroups gmane.linux.debian.devel.ssh
Message-ID <ZzjVrcgBztA5LLEO__7934.5775813394$1731778410$gmane$org@meinfjell.helgefjelltest.de>
Hello Russ,
Am Sat, Nov 16, 2024 at 09:10:48AM -0800 schrieb Russ Allbery:
> Helge Kreutzmann <[email protected]> writes:
> 
> > About a week ago the connections started to terminate quickly, i.e.
> > after a few minutes (I can time this, if this is of any importance).  So
> > I return to the ssh client, and on the first key I hit, the session is
> > terminated and I get a message like:
> 
> > Connection to 142.132.201.35 closed.
> > client_loop: send disconnect: Broken pipe
> 
> Every time I personally have seen this specific symptom, it's because
> someone has changed the configuration of a network firewall or NAT
> translation box between me and the server and TCP sessions are now being
> dropped after a short idle timeout.
> 
> Try adding:
> 
>     ServerAliveInterval 50
> 
> to the relevant block in your client .ssh/config.  This will force the
> client to do network activity on the connection every 50s, which will
> hopefully be faster than the couple of minutes of inactivity timeout that
> I suspect you're seeing.  If this makes the problem go away, that makes it
> more likely that you're encountering some intermediate network hop with an
> aggressive idle connection timeout.
> 
> This is not necessarily a firewall.  I have seen this behavior even with
> home network wireless routers.  I blame it on network gear that has only
> ever been tested with HTTP traffic and has no idea what to do with
> long-lived persistent TCP connections that don't have constant traffic.

Thank you *very* much. I'll added this and try it out now.

(Yes, maybe in the server domain they "updated" some devices).

Greetings

           Helge

-- 
      Dr. Helge Kreutzmann                     [email protected]
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEbZZfteMW0gNUynuwQbqlJmgq5nAFAmc41aoACgkQQbqlJmgq
5nA62hAAnUqeStBD9Q888bS2k7WFdLS2da1ptxupTccb2DfBC1rMrHS/O22Krwaz
22M6TpU4VTffbVnYlkuQQ2HKyp2p2QOfMfKmZso9A2Ls2zI9QpBUNgbEGeuoorg1
c3LMu5AXjHLBz+kQasPRPXOZ3Qs8rj8KsFgrq/7Plnb2Xamd1yZmaZw9QgTkcFhS
3EDESnCfjhgDsYxN0Xak9zW1YdTUsQmy2FBzNPxnV+p9jgooUrvz+m0TN8U8vGRE
9eFrBDXc5HarrPCOJnu20sYmTkHcMtTJiaYvN7Z1kjb3RkUstzaK7OloiaRyxkuS
y66HQOApaKy4YTJ9mvqpp/La03SIFJHbHJ3S7FnCUZaNt6P7amx1yzAX7IjBol6X
pb3EflYOIYzS4dgiC+oCIBtfD2FfcOEl5bzSU5l8E3AHqs4bBkFiM9wWFIIaP0yf
p/7MB1N7QjO7RsrF8grCCzy7YrBVy696s2HQN7CFSJWCqC8O77I2/5UiS6lMdiCD
2ycc+Zdv6KQQuAjZdXVPfvebkzrnwEltjM7eB8PGEp5xxqy7JehJwPITh0zAFr3h
CJUgu4gIDjoO1WiCQIuq3crFtsgLfokYQcq6qOaeX0LeQo586+NfJ5lcYKu/ampT
mZxE963JpmzklRxpioiP+5ps1VycZ8Y2WgtEiwj8m5/CdWsvGb4=
=/uiC
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.