G
G
giggigi2013-03-28 14:55:20
SSH
giggigi, 2013-03-28 14:55:20

How to stop dying terminals connected via ssh?

Hello.
Once upon a time, everything was fine with us, but after changing the router (to netgear), the following problem is observed:
Open the terminal, connect via ssh to the server, leave the terminal for N minutes (probably 10-15 minutes, I can’t say for sure), after which it stops responding to any actions and can only be closed.
If you display top or any other dynamic information in the terminal, then the terminal does not die.
This is observed on all OSes.
Perhaps someone faced a similar problem? What needs to be done in this case so that the terminals do not die? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2013-03-28
@gigigi

TCPKeepAlive yes in sshd_config

K
KEKSOV, 2013-03-28
@KEKSOV

Try this command, it might help. It helps me :)
ssh -o TCPKeepAlive=no -o ServerAliveInterval=15 -o ServerAliveCountMax=10
I wrote
alias ssh='ssh -o TCPKeepAlive=no -o ServerAliveInterval=15 -o ServerAliveCountMax=10' in my .bash_profile

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question