Answer the question
In order to leave comments, you need to log in
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
PS noticed that there are no such problems when connecting to other remote machines -__-
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.
ServerAliveInterval adjust www.howtogeek.com/howto/linux/keep-your-linux-ssh-...
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question