LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-02-2002, 12:11 AM   #1
civiltongue
LQ Newbie
 
Registered: Aug 2002
Posts: 4

Rep: Reputation: 0
Delays on FTP login


I'm trying to set up a server that can, among other things, run an FTP server for clients on my LAN. (I'm not too worried about security right yet.)

I have a spare Dell 500 MHz Pentium II with 98M RAM and plenty of hard disk that can be dedicated to this purpose. I installed Red Hat 7.0 in server configuration, no X Window, no GUI. I added the wu-ftpd RPM. The whole machine is partitioned for Linux (no dual-boot). Seemed to go pretty smoothly.

When I try to log in from an FTP client on another node on my LAN, there's a delay of over 60 sec before login is complete. My client shows "connecting to 192.168.1.1" almost instantly, but over a minute goes by before I see the wu-ftpd welcome message and a username query.

Once that happens, the rest of the process (username, password, etc.) goes very fast. Everything appears normal, including file transfers which happen at quite respectable speeds.

I tried two different ftp clients (ws_ftp and the ftp client built into the Cygwin shell). Also, I repeated the install several times, including a couple of times with Red Hat 7.2. Same results.

Other Linux applications run just fine. The only problem is that delay on ftp login. (Well, actually, telnet logins are also pretty slow, maybe 15 to 20 sec.)

I noted that both Linux installs use xinetd as opposed to plain old inetd. Maybe there's some sort of security glitch that's slowing things down.

Any ideas?
 
Old 08-02-2002, 02:33 AM   #2
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Rep: Reputation: 34
Even I have similar problem. I was reading about that and I could find that ftp first tries to authenticate using differant methods other than passwd. After all of that fails it goes back to the passwd authentication.
Here is what I find.

Connected to athreya.ee.iitm.ernet.in.
220 athreya.ee.iitm.ernet.in FTP server (Version wu-2.6.2-5) ready.
504 AUTH GSSAPI not supported.
504 AUTH KERBEROS_V4 not supported.
KERBEROS_V4 rejected as an authentication type
Name (athreya:miniDECT):

So I nowadays try ftp -u ipnum. This seems to be OK. Once connected I use "user login" to authenticate. If I happen to find more about this, I will post again.
--Sarin
 
Old 08-02-2002, 03:05 AM   #3
naz
Member
 
Registered: Aug 2002
Location: Malaysia
Distribution: RedHat
Posts: 58

Rep: Reputation: 15
When I try to log in from an FTP client on another node on my LAN, there's a delay of over 60 sec before login is complete. My client shows "connecting to 192.168.1.1" almost instantly, but over a minute goes by before I see the wu-ftpd welcome message and a username query.

This is due to the ftp server attempting to do a reverse lookup on your IP address as it looks like your computer's IP address is 192.168.1.X and the server is 192.168.1.1. This can be solved by either a) making your ip address resolvable - a simple way of doing this is by putting an entry in the server's hosts file e.g.

192.168.1.X myotherpc

b) set the ftp server to *not* resolve hostnames (though this might not be possible with some ftpds)

c) running a nameserver on the server will also work, as then it will reply pretty quickly that 192.168.1.x is not resolvable and the ftpd can get to work

naz
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 04:24 PM
telnet delays before login prompt laxu Linux - General 2 07-02-2004 01:39 AM
Major slowdown/delays on FTP sessions mstembri Linux - Networking 0 02-09-2002 10:45 PM
Activating eth0 causes problems/delays in login... Why? And how to remediate? patapon Linux - Newbie 4 12-14-2001 06:18 AM
Activating eth0 causes problems/delays in login... Why? And how to remediate? patapon Linux - Networking 3 12-14-2001 05:39 AM

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

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