Z
Z
zh_erzh2015-12-06 15:09:30
linux
zh_erzh, 2015-12-06 15:09:30

Where to dig when ssh client freezes?

Good afternoon.
The following problem arose:
I connect successfully via ssh to a remote machine with the usual ssh [email protected] command, the network connection is good.
But it's worth leaving for 5 minutes, upon returning, the window with the ssh session does not respond at all to any keystrokes.
If you ssh into the remote machine again and kill the "hung" session, the window with the hung session will also not show any signs of life.
When connecting from a windows machine (xshell), there are no such problems.
Tell me where to dig? What logs to watch? As I understand it, this is the problem of the ssh client, not the server (since there are no such problems on windows). /etc/ssh/ssh_config on the client machine is standard.
PS noticed that there are no such problems when connecting to other remote machines -__-

Answer the question

In order to leave comments, you need to log in

5 answer(s)
O
Oleg Tsilyurik, 2015-12-06
@Olej

PS noticed that there are no such problems when connecting to other remote machines -__-

1. Then, on the contrary, this is a server problem, not a client problem.
2. For many years of working with Linux and with SSH, I have never seen anything like this.

M
mureevms, 2015-12-06
@mureevms

I noticed this when connecting to any server, if the machine from which the connection is made goes into sleep / standby mode. You can also look at the power settings.

R
romy4, 2015-12-06
@romy4

ServerAliveInterval adjust www.howtogeek.com/howto/linux/keep-your-linux-ssh-...

K
Kirill Maslov, 2021-10-01
@bziker

I accidentally stumbled upon a question, it’s clear that it’s no longer relevant, but someone can help someone find this question, the solution is:
/etc/ssh/sshd_config :
TCPKeepAlive yes
ClientAliveInterval 120
ClientAliveCountMax 720
is in the sshd config on a remote server

N
Nikolay Vasilchuk, 2014-11-26
@Anonym

Like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question