Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

Hi all, When I'm trying to login to the ftp server with appropriate username and password its taking almost 10-15 seconds to authenticate making the login process slow, even when I'm uploading files its again hanging for 10-15 seconds before completing the job successfully. Its not like its happening every time, but 7 times out of 10. Any idea how can make the authentication fast?

I'm using gftp to connect to the ftp server, while connecting it hangs after showing this message:

Quote:gFTP 2.0.19, Copyright (C) 1998-2008 Brian Masney <masneyb@gftp.org>. If you have any questions, comments, or suggestions about this program, please feel free to email them to me. You can always find out the latest news about gFTP from my website at http://www.gftp.org/
gFTP comes with ABSOLUTELY NO WARRANTY; for details, see the COPYING file. This is free software, and you are welcome to redistribute it under certain conditions; for details, see the COPYING file
Looking up 192.168.1.95
Trying 192.168.1.95:21
Connected to 192.168.1.95:21
220 Welcome to blah FTP service.
USER h15
331 Please specify the password.
PASS xxxx 

But after 10-15 seconds it logs in successfully.

Quote:230 Login successful.
SYST
215 UNIX Type: L8
TYPE I
200 Switching to Binary mode.
PWD
257 "/var/ftp/pub/users/h15"
Loading directory listing /var/ftp/pub/users/h15 from server (LC_TIME=en_US.UTF-8)
PASV
227 Entering Passive Mode (192,168,1,95,96,165).
LIST -aL
150 Here comes the directory listing.
226 Directory send OK.

asked 20 Apr '10, 07:18

sayan_acharjee's gravatar image

sayan_acharjee
1112
accept rate: 0%

Please accept an answer so the question/answer can be finished.

(20 Apr '11, 13:41) rfelsburg ♦



Common causes of such behavior are due to the server:

  1. trying to know who you really are through the ident protocol (rfc1413) but having a firewall or NAT blocking this traffic
  2. failing to get your DNS name (reverse DNS lookups)
  3. having a partly unavailable authentication service
link

answered 20 Apr '10, 07:41

jlliagre's gravatar image

jlliagre
1513
accept rate: 50%

try to check the way that you login by, like see your ssh keys or something like :D

link

answered 22 Apr '10, 07:16

Network%20Systems%20Engineer's gravatar image

Network Syst...
2415
accept rate: 16%

How SSH keys can be related to FTP, can you tell?

(22 Apr '10, 11:16) Web31337
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×3

Asked: 20 Apr '10, 07:18

Seen: 3,303 times

Last updated: 20 Apr '11, 13:41

powered by OSQA