LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-13-2005, 07:11 AM   #1
Jim Deakin
LQ Newbie
 
Registered: Dec 2005
Posts: 5

Rep: Reputation: 0
ssh/tcp hanging/sleeping problem


I think this may be two separate problems, but I'm not sure. I'm not well up on network stuff, so any help gratefully received.

I have a Redhat FC4 machine at work, and one at home, on a shared broadband modem with NAT forwarding. If I ssh to my home machine from work but don't do anything, the session will hang. If I set 'top' running, then the session stays awake. Ditto as long as I'm doing something. It only takes a few minutes inactivity before it hangs though.

If I'm at my home machine and browse to a chatroom, I can participate for a couple of minutes then it appears to hang. Apparently what I type when it's hanging appears immediately in the chatroom, but it can be several minutes before all the text that should have shown up arrives on my display, all in one burst. Very frustrating in a quiz! This happens even when there is activity.

I've set .ssh/config to contain "ServerAliveInterval 240" on both the source and destination machines for all login codes.

On both machines, in /etc/ssh/ssh_config I've uncommented and set the lines:
ServerAliveCountMax 999
ServerAliveInterval 999
TCPKeepAlive=yes

And, again on both machines, in /etc/ssh/sshd_config I've uncommented and set the lines:
TCPKeepAlive yes
ClientAliveInterval 60
ClientAliveCountMax 30
KeepAlive yes
ClientAliveInterval 60

I suspect I'm misusing some of the parameters, but I don't know which. I'm stumped

Thanks anyone

Jim Deakin
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openLDAP hanging problem. topcat Linux - Software 2 03-28-2005 06:10 AM
Woody 3.0 Open Ports 1470/tcp/uaiact 1518/tcp/vpvd What for?How can I remove them? alexxxis Debian 5 07-05-2004 05:18 PM
Console hanging and scp transfer low when using ssh XStorm Linux - Networking 1 12-08-2003 09:34 PM
How to install SSH and TCP Wrappers kahpeetan Linux - Security 5 11-20-2003 11:54 AM
redhat 7.1 - How do i know if the default install compiled ssh with tcp wrappers ForumKid Linux - General 3 01-23-2002 07:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration