LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-07-2010, 03:13 AM   #1
Sunb3
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Rep: Reputation: 0
Unhappy ssh connection inactive


Hi All, it's the first time for me on this forum.

I'd like to have some hits from you about a problemi on ssh connection.

I have two servers with RedHat 5.4 installed and I have an application that looks like a cluster handler (as veritas, heartbeat, suncluster, redhatcluster and so on). This Application is not graphic and when I started it makes an "attach" to the bash shell.

My problem is the following:I connect through Putty client and after some minutes the ssh connection goes in INACTIVE mode. At this point I lost the bash shell with the prompt of application. It is not possible "detach" the application from the shell so I did the following instruction to avoid the inactive state of ssh connection:

I modified sshd_config file only

TCPKeepAlive yes
ClientAliveInterval 300

and then
/etc/init.d/sshd restart

Unfortunately it doesn't work. Is there any other solution to keep "ACTIVE" the ssh connection?

Thank you very much
 
Old 07-07-2010, 03:23 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
just set a keepalive on putty, make it check every 10 seconds in the gui and you should be ok, assuming that you do actually not use the connection for a period of time, and these interruptions aren't in the middle of being used.
 
Old 07-07-2010, 04:17 AM   #3
Sunb3
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Unhappy

Thank you! I already tried to set keep alive on client and it works properly but for my scope I should keep alive the ssh session "for ever" unless I terminate it. Therefore I have to avoid the "crash" of ssh connection and shell.

Do you have any other suggestions?

Thank you for you availability
 
Old 07-07-2010, 04:31 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well that IS what a keepalive is for...? you can't stop something """"crashing""""""" though.
 
Old 07-07-2010, 06:59 AM   #5
Sunb3
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Talking

Ok I knew that, I meant that I cannot modify the keep alive by the remote client. I need to find a solution by the server!!!

Do you know any solution?

Thank you in advance!
 
  


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
ssh: connection to host port: 22: Connection timed out lost connection cucolin@ Linux - Server 4 11-22-2011 06:15 AM
[SOLVED] ssh connection gdonwallace Ubuntu 3 12-01-2009 05:28 PM
How to disconnect inactive ssh sessions ? sultf Linux - Newbie 3 02-04-2009 02:28 PM
LXer: ssh-xfer: Quickly grabbing files over an existing SSH connection LXer Syndicated Linux News 0 08-08-2008 03:11 PM
ssh connection refused - trying to set up ssh server at home openSauce Linux - Server 10 10-18-2007 04:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:45 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