Random SSH and SSL/TLS disconnections

Asked by Michael Heuberger

Hello again

I often experience weird disconnections. This when I am on Thunderbird, accessing a mailbox over SSL/TLS, or when I want to SSH into a remote server.

I m on Ethernet here and this doesn't happen on other machines in the same local network, so it must be related to my Ubuntu machine. I tried many things but nothing helped.

Any clues where to start?

Thanks
Michael

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

when you connect, run a ping to localhost. This will continually send text back to your client and keep the connection alive.

Revision history for this message
Michael Heuberger (michael.heuberger) said :
#2

interesting - why are you suggesting this exactly?

are you implying that these pings to localhost should fail whenever i experience SSH and SSL/TLS disconnections?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Iuse the same. If you dont send traffic in the terminal it can disconnect easily. The only extra traffic over the link is a few kilobytes as it is the line of txt for the ping but will help.

Try it, it costs nothing....

Revision history for this message
Michael Heuberger (michael.heuberger) said :
#4

okay, i ran it for almost one hour and yet, i experienced weird disconnections in thunderbird over ssl/tls ... so, that pinging didn't help.

there are mechanism out there to keep a connection alive without the need for a permanent ping.

how else can i detect the weird disconnections on my machine? are there any tools or trick to detect these?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

https://www.maketecheasier.com/keep-ssh-connections-alive-in-linux/

States:

echo "ServerAliveInterval 60" | sudo tee -a /etc/ssh/ssh_config > /dev/null
sudo service ssh restart

Does this help any?

Revision history for this message
Michael Heuberger (michael.heuberger) said :
#6

Will do tonight, but shouldn't this be ClientAliveInterval since I am the client trying to ssh into the remote server??

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.