[CentOS] ssh freezes, solved

Tue Oct 27 05:23:14 UTC 2015
Michael Hennebry <hennebry at web.cs.ndsu.nodak.edu>

On Mon, 26 Oct 2015, Robert Moskowitz wrote:

> 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.

That seems to have done the trick for me.

-- 
Michael   hennebry at web.cs.ndsu.NoDak.edu
"Sorry but your password must contain an uppercase letter, a number,
a haiku, a gang sign, a heiroglyph, and the blood of a virgin."
                                                              --  someeecards