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_configAny clues about how I can solve this?
SSH connection freezes after bigger output when inactive for a while
ssh;arch linux;openssh
Change ~/.ssh/ssh_config to ~/.ssh/config. Make sure the permissions on it are 700.This discussion has a lot of good information. You can also follow the tag for ssh (just click on /ssh under your question) to go to a tag wiki for more information and trouble shooting guidance.