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

Colin Watson <[email protected]>
Newsgroups gmane.linux.debian.devel.ssh
Message-ID <Zzif0JHkRRWmMT0u__12498.5154879809$1731766750$gmane$org@riva.ucam.org>
On Sat, Nov 16, 2024 at 01:25:11PM +0000, Helge Kreutzmann wrote:
> I'm using ssh a lot, usually having several ssh connections open the
> entire day.
> 
> 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
> 
> The (very) bad thing is that the session is not closed ordinarily,
> e.g. bash_history does not contain the last commands (fortunately I
> did not have any other data loss so far).
> 
> If I work in the ssh session, the the dying is delayed, so it seems
> like the sssion dies after a certain inactivity time.
> 
> But this is very annoying, I'm in the middle of some work, read a man
> page or a web page just to find out, that the session died, I have to
> login again, cd to the correct directory etc.
> 
> The ssh target configuration is unchanged (running Debian stable) as
> well.
> 
> If you need any further information, I'm glad to provide it.

I think this is quite likely to be a network-level problem rather than
anything to do with OpenSSH.  But perhaps running with at least `ssh -v`
(or `ssh -vvv` if the extra output isn't too annoying) would at least
get a bit more information.
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.