Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In a vsftpd server enviroment, shared various directories from nfs mountpoints, I can log in without problem, but when I send the first "ls", the vsftp give me the directory listing:

lftp user1@> ls
-rw-rw-rw-    1 1160     1016          392 Jun 06 09:28 test.gif

but not give me the shell again (lftp client). In the server log I can see that the last message is:

"150 Here comes the directory listing."

Why does this happen?

share|improve this question

Check your firewall settings, chances are you are not allowing the PASV ports through, or maybe port 20 ftp-data. Try opening TCP ports 50000-55000 on your firewall and add the below to your vsftpd.conf.


If using active mode then you should just need port 20, if using passive then you should be setting those ports on your firewall and the matching in the ftp config.

Here is a quick overview on Active vs Passive

share|improve this answer

I had that same problem on my Amazon EC2 Ubuntu machine. I had ports 50000-51000 set for the passive mode in vsftpd.conf, and I had to open the ports on the security group AWS firewall settings.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.