SSH Terminal freeze in Mac OS X 10.6

After logging in with ssh from standard OS X Terminal (remote host is running FreeBSD) and idling for like 2-3 minutes it freezes and doesn't display any entered characters, doesn't react to 'Enter', etc. The only option is to re-open Terminal and login again. Also, just for reference, I haven't experienced this problem with Putty on Win 7 (same remote host). Any suggestions?
iivanAsked:
Who is Participating?
 
iivanAuthor Commented:
Ok, here's a solution: I created ~/ssh/config file and put 'ServerAliveInterval 120' line there (not ClientAliveInterval !). Usually people recommend editing /etc/sshd_config but in my case for some reason it didn't work (probably different ssh versions).
0
 
marookCommented:
It sounds strange to me, but sounds like a connection is dropped (and the local Terminal is not noticing).

Or, maybe the actuall SSH tunnel is not dropped (IP wise) but the data is stopping.

Does this also happen if you start something that keeps outputting to the terminal? (Like a simple ping every 5 sec..)
0
 
iivanAuthor Commented:
It's strange but not that uncommon -- I've googled the same problem and in that case changing ClientAliveInterval to 180 in sshd_config worked, but not for me.

If I run ping I can still type after it finishes (approx 5 minutes) but if I run nothing it freezes earlier (at most 4 minutes).
0
 
marookCommented:
Ahh, ok - cool - so you get the point yourself.. ;-)
0
 
iivanAuthor Commented:
Well, it's weird, I can't assign points to myself so I have only one choice :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.