LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-13-2009, 04:27 PM   #1
adam.ec
LQ Newbie
 
Registered: Jan 2009
Posts: 9

Rep: Reputation: 0
Losing connection with SSH and Webserver with Debian Lenny


Okay, I'm not sure if it is the connection I'm losing or something else is happening and I just can't fathom it out.

I have set up Debian from netinstall. I installed openssh server and Apache. The server is connected to our local network with the IP address 192.168.0.51 and shares a physical port on a simple ethernet switch.

I can SSH into the server from Ubuntu but it takes around one minute to ask for a password and another 20 seconds or so to bring up the prompt. I have checked twice to make sure their are no conflicting IP addresses on the network (all static). The connection seems fine but if I am away from the secure shell for more than a couple of minutes or I minimize the terminal window I can no longer type anything at the remote machines prompt. Reconnection without restarting the server is impossible on most attempts and the terminal just hangs before the password prompt appears.

I have the same kind of issue with Apache. I can view Apaches test index.html using just the IP address from my browser but after a few minutes I get the 'connecting to 192.168.0.52' in the status bar and it never reconnects.

Anybody any ideas on how to put this right? Thank you in advance.
 
Old 08-13-2009, 07:22 PM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
I am not sure whether you have 1, 2, or 3 distinct problems. (Your explanation is clear, I just don't know whether they are, at their root, the same problem or not.) I suggest you use a packet sniffer like tcpdump or wireshark to see what is going with the long delays. If using it at one end doesn't provide sufficient information, try it at the other end as well.

You might also get useful information using the -v option with ssh. Use it up to three times for increasing verbosity.
 
  


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
LXer: Chrooted SSH/SFTP Tutorial (Debian Lenny) LXer Syndicated Linux News 1 08-07-2009 12:52 AM
Can only connect to the connection used to install Debian/Lenny; VAIO PCG-K23F oncozerov Linux - Networking 1 03-10-2009 08:20 PM
Losing ssh connection centguy Linux - Networking 1 04-15-2008 05:41 AM
Keep losing connection to remote machine through SSH/VNC cav Linux - Networking 3 04-23-2006 07:12 PM
Debian losing network connection thijser Debian 3 05-14-2005 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:05 AM.

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