I have a problem with an SSH session freezing after using it again when it was idle for a while.
The problem is that the session doesn't freeze immediately, I can still use it. But as soon as a command sends more data, it freezes before any output arrives, and I have to restart the terminal.
If have read earlier solutions about MTU, but there, the session freezes everytime. Here it only happens after a period of inactivity.
Note that I have set
ServerAliveInterval 120 in .ssh/ssh_config
Any clues about how I can solve this?