LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-02-2013, 10:22 AM   #1
Fed
LQ Newbie
 
Registered: Aug 2012
Location: England, UK.
Distribution: Fedora, RHEL.
Posts: 6

Rep: Reputation: Disabled
SSH session not active


I've been putting one of our new servers through it's paces today. It's running RHEL6.4 and all of the testing is occurring from a secondary server, which is going in via SSH to the RHEL server.

Quite often, it's failing the testing with the following error message:
Code:
SSH session not active
From what I understand, this usually indicates some kind of SSH timeout. In response to this, I uncommented the ClientAliveInterval in /etc/ssh/sshd_config and gave it a value of 400.

Unfortunately this hasn't solved this issue hence why I'm writing this thread. Could anyone suggest something I may have missed? This is particularly frustrating as we have another server, running 6.3, which works flawlessly and I can't see any difference in configuration.

On my latest run, the following was outputted (EDIT: On the client): 10054 which apparently means "Connection reset by peer", or "An existing connection was forcibly closed by the remote host". /var/log/message (EDIT: On the server) is listing: "imuxsock lost X messages from PID x due to rate-limiting" and "imuxsock begins to drop messages from pid X due to rate-limiting".

Last edited by Fed; 07-03-2013 at 02:28 AM.
 
Old 07-02-2013, 12:11 PM   #2
smeuth
LQ Newbie
 
Registered: May 2012
Location: Colorado
Distribution: RHEL, Slackware
Posts: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by Fed View Post
From what I understand, this usually indicates some kind of SSH timeout. In response to this, I uncommented the ClientAliveInterval in /etc/ssh/sshd_config and gave it a value of 400.
Did you set that varible on the server or the client?
Did you bounce the service after making the change?
 
Old 07-03-2013, 02:26 AM   #3
Fed
LQ Newbie
 
Registered: Aug 2012
Location: England, UK.
Distribution: Fedora, RHEL.
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smeuth View Post
Did you set that varible on the server or the client?
Did you bounce the service after making the change?
Thanks for replying, smeuth. The value (ClientAliveInterval) is set on the sever and the service was restarted.

I don't think the issue is the client, given it's solid performance with the other servers running 6.3.

Also, the firewall does allow port 22.

Last edited by Fed; 07-03-2013 at 02:33 AM.
 
Old 07-03-2013, 11:01 AM   #4
slipstreamed
Member
 
Registered: Nov 2010
Posts: 60

Rep: Reputation: 24
Maybe this'll work, edit the sshd_config and insert the following lines
Code:
ServerAliveInterval x
ServerAliveCountMax y
These settings will make the SSH server send a null packet to the other side every <x> seconds, and give up if it doesn't receive any response after <y> tries, at which point the connection is likely to have been discarded anyway.
 
Old 07-03-2013, 04:02 PM   #5
Fed
LQ Newbie
 
Registered: Aug 2012
Location: England, UK.
Distribution: Fedora, RHEL.
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by slipstreamed View Post
Maybe this'll work, edit the sshd_config and insert the following lines
Code:
ServerAliveInterval x
ServerAliveCountMax y
These settings will make the SSH server send a null packet to the other side every <x> seconds, and give up if it doesn't receive any response after <y> tries, at which point the connection is likely to have been discarded anyway.
Thanks for the reply. I imagine the lower X and Y are, the more alive it's likely to be?
 
Old 07-04-2013, 02:13 AM   #6
slipstreamed
Member
 
Registered: Nov 2010
Posts: 60

Rep: Reputation: 24
Example
Code:
ServerAliveInterval 600
ServerAliveCountMax 5
here ssh server will send a null packet to client(s) every 600 seconds and will drop the connection if it fails to receive a response after 5 tries
http://patrickmylund.com/blog/how-to...-ssh-sessions/

Quote:
On my latest run, the following was outputted (EDIT: On the client): 10054 which apparently means "Connection reset by peer", or "An existing connection was forcibly closed by the remote host". /var/log/message (EDIT: On the server) is listing: "imuxsock lost X messages from PID x due to rate-limiting" and "imuxsock begins to drop messages from pid X due to rate-limiting".
http://bugs.contribs.org/show_bug.cgi?id=7470
http://www.rsyslog.com/tag/rate-limiting/

Last edited by slipstreamed; 07-04-2013 at 02:20 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make commands keep running after leaving a terminal session or ssh session Danny3031 Programming 18 01-30-2012 11:29 AM
Apache - Tomcat How to use session ID to confirm an active user session? klroller Linux - Server 4 10-08-2009 09:43 PM
Accessing an Active SSH Session neoform Linux - Newbie 3 05-07-2009 03:50 PM
Telnet/SSH screen stops responding after a while but the session is still active alllle Linux - Networking 4 05-04-2004 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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