Slow FTP Connection

3 posts / 0 new
Last post
#1 Wed, 01/07/2009 - 12:41
Ismet Togay

Slow FTP Connection

Hi all,

The problem is that FTP connections are very slow although the SFTP ones are very fast!

I want to lock users to their home folders. If they use SFTP they can easily browse the whole server and I don't want it. On the other hand, they can see only their own files via ftp, but very slowly (e.g. it takes 5-10 seconds to see the contents of a folder).

What can be the problem? What do you suggest?

Any help will be appreciated...

Ismet

Wed, 01/07/2009 - 13:12
Ismet Togay

OK! I have just found the solution!

In the Webmin > Servers > ProFTPd Server > Networking Tools,
I change the value of "Do reverse DNS lookups of client addresses?" to "NO". Then, the ftp worked like a charm!

Wed, 01/07/2009 - 13:48 (Reply to #2)
andreychek

Howdy,

I'm glad you figured it out!

While that should improve performance, it surprised me that it'd do so as dramatically as it did for you.

I'd double-check that DNS is working properly on your server, perhaps by logging in over SSH and just running "dig" to make sure you get some output.

Also, regarding SCP/SFTP -- you might want to look into the "scponly" shell:

http://www.sublimation.org/scponly/wiki/index.php/Features

You can use it to prevent SSH access while allowing secure file transfers -- as well as chroot'ing users to their home directory.

Have a good one!
-Eric

Topic locked