Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27th November 2006, 10:01 PM
arlorn Offline
Registered User
 
Join Date: Nov 2006
Posts: 11
FTP / SSH Connections timing out?

Hello. I'm somewhat new to Fedora so forgive me for any ignorance... but I've installed, configured, and reinstalled and reconfigured Fedora 5 and 6 with every installation guide I could find, and yet I'm still having a problem with sftp/ssh connections. My server is up and running, and I can view a webpage through apache on request, every request... however, for some reason only a few requests from putty psftp / ssh from another computer go through, and after they do, they stop responding after about a minute (as though they timed out). The amount of time before timing out is completely variable, sometimes it'll be after I get my first command prompt... sometimes after I enter a few commands... but often it'll be before I even get a chance to enter my password (and as such, it'll leave me sitting with a blank screen forever after typing in my username). That computer can connect to any other server without difficulty, so I'm sure it's my configuration.

My question is where to begin? I've tried figuring out what could be going wrong for far too long, but I can't seem to find any good resource about this, and my reinstallations have gotten me nowhere. Is there an appropriate log file for this problem I could be checking?

Thanks so much for your time, and any help, whatsoever, is greatly appreciated!,
-Jess
Reply With Quote
  #2  
Old 27th November 2006, 10:18 PM
arlorn Offline
Registered User
 
Join Date: Nov 2006
Posts: 11
I still experience the same behavior after disabling SELinux, so I'm sure that's not a problem as well.

Thanks so much!,
-Jess
Reply With Quote
  #3  
Old 27th November 2006, 10:26 PM
wesamel's Avatar
wesamel Offline
Registered User
 
Join Date: Nov 2006
Location: Ann Arbor, MI
Age: 25
Posts: 115
I really don't know much about this particular topic, but I'll take a stab in the dark and suggest that you try disabling the firewall or opening the necessary ports.
Reply With Quote
  #4  
Old 27th November 2006, 11:08 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
If the port is not being blocked then I would say a configuration or maybe a routing problem. Here is a link on setting up ssh that is pretty good. http://www.suso.org/docs/shell/ssh.sdf

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #5  
Old 28th November 2006, 03:53 AM
arlorn Offline
Registered User
 
Join Date: Nov 2006
Posts: 11
Hmm... The link was very helpful. I don't know what I changed to get it to work, but the problem appears to be gone now. Thanks so much!
-Jess
Reply With Quote
  #6  
Old 28th November 2006, 03:58 AM
dtop99 Offline
Registered User
 
Join Date: Nov 2006
Location: michigan
Posts: 6
I would try turning the firewall off completely if it happens again just to rule that out.
Also lots of people seem to be having issues with IPv6 being enabled, there are some good threads in the forum outlining disabling this, just in case that's caused an issue.
Reply With Quote
  #7  
Old 4th December 2006, 04:02 AM
harper2.0 Offline
Registered User
 
Join Date: Dec 2006
Location: andromeda
Posts: 17
Hi guys, new here. I'm running a test web server on FC5 using the latest version of apache. I have no problems logging in via ssh and sftp when the machine is freshly booted. But after a long period of time, the machine takes too much time to respond causing a time out. COuld it be a hardware issue? It's on 256 mb ram, I'm pretty sure my processor is ok at 3.02 ghz Intel Pentium.

Any help is appreciated, thanks!
Reply With Quote
  #8  
Old 4th December 2006, 09:19 PM
arlorn Offline
Registered User
 
Join Date: Nov 2006
Posts: 11
Not that I'm the best person to be responding to this, quite obviously, but my first guess would be that it's a hardware issue... yes. The 256m ram stands out to me as rather low... which could perhaps be used up by other applications. In my experience, you start hitting some weird application behavior when your ram starts getting low. My first move would be to identify how much ram you're using on startup, and then again when ssh times out... This should be a function of System Performance (I believe?). Also, I would personally take a shot in the dark and try connecting via ssh/sftp from the server itself to see if it's, perhaps, a different connection problem. You can run ssh/sftp from the terminal command line. Also, I'd try restarting your ssh/sftp server (which you can do in Services, which is under the Administration section), after it starts timing out, and then see if it that behavior continues.

If you do all of those, and still can't figure it out, posting those result may help to get someone else's input as well.

Best of Luck,
-Jess
Reply With Quote
  #9  
Old 4th December 2006, 11:48 PM
harper2.0 Offline
Registered User
 
Join Date: Dec 2006
Location: andromeda
Posts: 17
Hi Arlorn, thanks for the reply. When I checked the free ram on my machine it said that it has something like 3MB free. I'm not sure if I read that right since I'm pretty new to linux. Probably I'll post a screen cap later.

Thanks!
Reply With Quote
  #10  
Old 5th December 2006, 01:28 AM
arlorn Offline
Registered User
 
Join Date: Nov 2006
Posts: 11
3 MB is extremely low... that's almost 99% of your memory... are you sure? The System Monitor is in
Code:
System > Administration > System Monitor
then click on Resources at the top. The middle section entitled "Memory and Swap History" shows the amount of resources you're using. While you're at it, you might as well check your CPU at the top, but I doubt that's the problem since you'd notice it in performance. The category to the left, "Processes", shows how the RAM is being divided between each process so you can see if you have any memory hog. Anyway, the other two things I suggested are kindof important for debugging as well. Then again, you can stop listening to me as soon as anyone else decides to chime in *smile*.

Best of Luck,
-Jess
Reply With Quote
  #11  
Old 5th December 2006, 02:16 AM
harper2.0 Offline
Registered User
 
Join Date: Dec 2006
Location: andromeda
Posts: 17
Thanks for keeping company Jess,

checked it out now and it say 45% of ram is free. So now I hooked up on one terminal to access the test machine and via putty this is what i get...

total used free shared buffers cached
Mem: 223592 202600 20992 0 6800 91768
-/+ buffers/cache: 104032 119560
Swap: 458744 0 458744

and then i run another check...

total used free shared buffers cached
Mem: 223592 202660 20932 0 6820 91768
-/+ buffers/cache: 104072 119520
Swap: 458744 0 458744


and another...

total used free shared buffers cached
Mem: 223592 203624 19968 0 6840 92564
-/+ buffers/cache: 104220 119372
Swap: 458744 0 458744

as you can see...the free memory colum is gradually decreasing...

Reply With Quote
  #12  
Old 5th December 2006, 03:34 AM
arlorn Offline
Registered User
 
Join Date: Nov 2006
Posts: 11
How far apart are you issuing those commands? It's quite possible you have a memory leak somewhere... perhaps you're using some software which has a bug? Assuming your memory is in fact dwindling down to nothing, then yeah, that should be causing some pretty big problems. I would try removing everything non-essential from starting up with your system, restart, and see if the problem is still around. If it isn't, then I'd start up the programs in groups until I found the one that was causing the leak. ... If it is still around.... then I'm not sure. I'm also afraid I'm not a great person to be asking about this, since, though I've used linux for quite a while, I haven't actually administered my own server until very recently. My best advice would be to post another topic with a catchy name in hopes to get someone a little more experienced to help diagnose that problem.

My apologies for not being more helpful, but best of luck!,
-Jess
Reply With Quote
  #13  
Old 7th December 2006, 03:30 AM
andekhi_ti Offline
Registered User
 
Join Date: Jul 2005
Location: jakarta
Age: 32
Posts: 55
you can optimize your linux performance maybe by :
disabling uneeded services, if your pc for server maybe it wouldbe more secure if you just using init 3 without X window.

or if you have extra hardisk you can make another swapfile or swappartition

dd if=/dev/zero of=swapfile bs=1024 count=512000
mkswap swapfile
edit fstap
swapon -a

for easy way u just upgrade your RAM

thanks
Reply With Quote
Reply

Tags
connections, ftp, ssh, timing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
yum - all mirrors timing out nbm_clan Using Fedora 4 25th July 2009 03:10 PM
Yum always timing out dj-toonz Servers & Networking 0 4th September 2008 10:10 PM
Dram timing is too tightly so reload timing Query Hardware & Laptops 3 23rd December 2007 06:44 AM


Current GMT-time: 01:52 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat