[CentOS] ssh freezes

Mon Oct 26 19:55:53 UTC 2015
Robert Moskowitz <rgm at htt-consult.com>


On 10/26/2015 01:28 PM, Michael Hennebry wrote:
>
> All too often, my ssh session will freeze.
> I'm fairly certain the problem is at my end.
> None of the tilde commands work.
> In particular, ~# and ~. are nonfunctional.
> I can write to ssh's terminal window from another terminal window.
> If I kill the ssh process, I can ssh in again.
> The next time it happens,
> I will try another ssh session without killing the first one.
> dmesg did not show me anything interesting.
>
> Any suggestions on how to diagnose?
>
I had this a lot until I added to /etc/ssh/ssh_config

ServerAliveInterval 15

Now I rarely get it.