LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-15-2012, 03:55 AM   #1
Hasnat Raza
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Rep: Reputation: Disabled
ssh connection disconnected while ip pinging.


hi LQ Forum,
I am facing strange problem.I have an ibm blade server installed Red hat 5 on it. Whenever i connect it with SecureCRT or Putty it disconnect after some time and after hitting few times to get session. It responds and login.When session disconnect the server ip still pinging sucessfully.

One thing which i observed that when i start ping to that server with '-t ' (ping ip-address -t), the ssh session never disconnect.
Please guide me whats going wrong.
Thanks for everyone.
 
Old 06-15-2012, 04:38 AM   #2
bakdong
Member
 
Registered: Apr 2009
Posts: 214

Rep: Reputation: 44
Are you, by any chance, using an ADSL connection with an idle timeout?
 
Old 06-15-2012, 05:22 AM   #3
Hasnat Raza
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
no i am not using any internet connection or ADSL on it.
 
Old 06-15-2012, 05:30 AM   #4
bakdong
Member
 
Registered: Apr 2009
Posts: 214

Rep: Reputation: 44
I've never experienced this problem, but found this link http://nileshbansal.blogspot.com/200...ts-in-ssh.html which refers to router idle timeouts and client and server alive interval and countmax:

ClientAliveInterval 30
ClientAliveCountMax 4
ServerAliveInterval 30
ServerAliveCountMax 4

Also check that it's not the shell timing you out with TMOUT or whatever.

Last edited by bakdong; 06-15-2012 at 05:35 AM.
 
Old 06-15-2012, 05:36 AM   #5
Hasnat Raza
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
i have tried it but problem not resolved. thx for reply
 
Old 06-15-2012, 10:46 AM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
Any sshd error messages on the server?
 
Old 06-15-2012, 05:32 PM   #7
Hasnat Raza
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
just show that connection disconnected, after some hits he allow me to again login.
Otherwise no error show to me where i guess whats actual problem.
As i mention in thread that when i start ping command on client server then server never disconnected. Mean some strike on server issue.
Thanks for reply suicidaleggroll & bakdong
 
Old 06-15-2012, 11:45 PM   #8
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Do you have access to the router that the server is connected to?
My router when logged in I can see all devives connected & ping them if they have network connectitvity.
 
Old 06-16-2012, 01:31 AM   #9
mannmaniyar
LQ Newbie
 
Registered: Apr 2009
Posts: 22

Rep: Reputation: 0
Do you have any time out settings on the server. Also check in Putty setting under the Category - Connection, that number in "seconds between keepalives" is set to 0.
 
Old 06-16-2012, 02:37 AM   #10
subho.d
Member
 
Registered: Jun 2010
Location: INDIA
Distribution: All Linux & Unix
Posts: 86

Rep: Reputation: 19
You can try this below tool :

http://linux.softpedia.com/get/Termi...erm-1781.shtml
 
Old 06-19-2012, 03:02 AM   #11
Hasnat Raza
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
@ EDDY1, i hav ping on router server its pinging sucessfully.
@ mannmaniyar, putty settings its already set to '0'
thx for answering.
 
Old 06-20-2012, 04:09 AM   #12
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Have you tried
Quote:
ssh user@ip-address
user=your user name
ip-address=ip for machine
 
Old 06-20-2012, 04:05 PM   #13
Hasnat Raza
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
@ EDDY1, acrually i m using secureCrt and putty so the problem come over here.
@ subho.d., i hav downloaded it but not installed sucessfully.
thanks u very much
 
Old 07-03-2012, 12:31 AM   #14
bakdong
Member
 
Registered: Apr 2009
Posts: 214

Rep: Reputation: 44
Still have the problem? I would turn on the logging in your ssh client and see if that gives you any clues.
 
Old 07-05-2012, 02:45 AM   #15
Hasnat Raza
LQ Newbie
 
Registered: Jun 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
@ bakdong, Ya i still have problem. actually u cant login because its not on internet. i will send you log which you want. thx for answering.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Very slow pinging and ssh suresh.k Linux - Newbie 1 09-07-2011 06:02 AM
Is there a solution for the WIFI connection getting disconnected? SHARK13 Linux - Newbie 1 05-16-2011 09:55 PM
Lose Wireless Connection when Wired connection is disconnected phillywill Linux - Wireless Networking 65 01-21-2010 09:40 PM
how to review disconnected ssh shell kirukan Linux - Newbie 1 06-03-2009 02:41 PM
ssh connection is disconnected suddenly powah Linux - Networking 1 12-15-2005 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration