LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags , , , , , ,

Reply
 
Thread Tools
Old 10-04-2009, 09:24 AM   #1
SirSefu
LQ Newbie
 
Registered: May 2007
Posts: 9
Thanked: 0
ssh connection timing out - Lenny out of the box


[Log in to get rid of this advertisement]
Dear All,

I'm having a hard time mastering this: I've just installed Debian Lenny into two new servers, and gone no further than installing OpenSSH-server (to accept remote ssh connections). My problem is that I'm getting network periodically hangs when I try to ssh from one of our remote-desktop-controlled "head" servers (Leopard Server 10.5.8). Here are the symptoms:

a) If I connect in ssh and start typing commands, there comes a point where I can no longer communicate new text through ssh. If I leave the terminal window open, I eventually get a message: "dRead from remote host server.ourdomain.com: Operation timed out
Connection to server.ourdomain.com closed."
b) Should I try immediately to connect, after a delay I get a message "ssh: connect to host server.ourdomain.com port 22: Operation timed out
c) Should I just connect to the server, not type any commands, and leave the connection open, I can come back even days later and be able to begin to send commands, but after a few the connection behaves like symptom a)

In all of the cases above, I can still ping the server I am trying to connect to.

Does the above seem familiar to anyone here, and could anyone tell me where to look (and what tools to use to do so)? Could this also be because of faulty DNS in the head server (I checked everything, as I had attributed new LAN IP's to the "sub servers" - but perhaps a mismatched MAC address?).

In any case, I'm really stumped, so if anyone can help, thank you very much.

PS: the "sub-servers" are Dell PE 1950's - there was an issue because of a "non-free" firmware (bnx2 for the gigabit ethernet card) not included in the default distribution, but normally I installed this just fine. Perhaps there is an issue there too?

Last edited by SirSefu; 10-04-2009 at 05:29 PM..
macos SirSefu is offline  
Tag This Post , , , , , ,
Reply With Quote
Old 10-04-2009, 05:29 PM   #2
SirSefu
LQ Newbie
 
Registered: May 2007
Posts: 9
Thanked: 0

Original Poster
Any suggestions would be much appreciated. Thank you!
macos SirSefu is offline     Reply With Quote
Old 10-08-2009, 12:26 AM   #3
SirSefu
LQ Newbie
 
Registered: May 2007
Posts: 9
Thanked: 0

Original Poster
I don't think the problem has anything to do with the computer trying to connect to the sub-servers - the same thing happens when I try to ssh in from anywhere or any platform.
macos SirSefu is offline     Reply With Quote
Old 10-08-2009, 04:39 AM   #4
donanap
Member
 
Registered: Sep 2008
Location: Perth, Australia
Distribution: RedHat, Solaris
Posts: 34
Thanked: 0
Smile SSH config file?

Hi,

Not sure how new you are to linux, so sorry if Im assuming something and you have already tried it! But..

Have you checked the ssh config file on the server?? Dont know where this file is on Debian - but RedHat its here:

Quote:
/etc/ssh/ssh_config
AND/OR
/etc/ssh/sshd_config
Make sure there is no connection timeout specified.

Good Luck,
Donanap
windows_xp_2003 donanap is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Losing connection with SSH and Webserver with Debian Lenny adam.ec Debian 1 08-13-2009 08:22 PM
SSH port binding and timing out - some questions eludlow Linux - Networking 2 10-23-2008 10:53 AM
SSH remote command not timing out tajsss Other *NIX 5 04-28-2005 07:57 AM
SSH connection refused using linux box 90coders Linux - Security 3 10-18-2003 03:53 AM
SSH timing out/not connecting NeccoWolf Linux - Networking 2 01-26-2003 03:01 PM


All times are GMT -5. The time now is 04:37 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration