I don't know but why SSH just freezes after some time?

I don't remember if I experienced this before, but it happens on both home and work computers, on my phone when connecting to different servers.

I remember it dying with "Broken pipe" but not freezing.
@a1batross too many packets lost i think. try mosh or eternalterminal?
@icedquinn I can run ping in background to IP and it'll not report about lost packets. Well, not enough to break SSH.

@a1batross

It is possible the remote machine is freezing at the command line level and ssh isnt really effected or involved in any way BTW

@icedquinn

@freemo @icedquinn I wonder why it happens with different servers on even different distributions?

@EpicKitty I'll try to set up keepalive to minute and see if it changes. Manual says it doesn't even send keepalive by default O_o.
@freemo @icedquinn @EpicKitty and what interesting, I usually login by ssh, check some stuff, leave it unused for minutes or even hours and came back (usually after I fix some stuff on localhost), and it worked before.

Now it just freezes. I could blame my ISP for dropping connections but it also happens on my work.
Follow

@a1batross

Only time I've seen that happen is on my laptop when it goes to sleep. Since packets are dropped while asleep when it wakes back up any ssh connections tend to be frozen if it was any appreciable amount of time.

@icedquinn @EpicKitty

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.