Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Could not retrieve directory listing; Error listing directory '/home/ftpuser'

Ok, so you are successfully connecting with FTP client from the same machine where your FTP server runs. I'm asking if you can connect with any FTP client directly from the machine where WinSCP fails.

You didn't answer how did you identify that you need to open 1024–1048 ports?

So far it looks like you did not open the correct ports in the firewall, so connections from the outside cannot work.
ming08

Re: Could not retrieve directory listing; Error listing directory '/home/ftpuser'

Hi, thanks for your advice. I SSH to my AWS Centos7 instance via PuTTY and login to the FTP server.

Do you mean without using any FTP client? How do I retrieve the directory listing?

For 1024–1048 ports, it is for passive port
martin

Re: Could not retrieve directory listing; Error listing directory '/home/ftpuser'

How are you connecting to FTP with PuTTY? PuTTY does not support FTP.
Can you actually retrieve the directory listing using any FTP client at all?

How did you identify that you need to open 1024–1048 ports? Maybe you need to open different data ports.
ming08

Could not retrieve directory listing; Error listing directory '/home/ftpuser'

Hi,

I'm trying to setup AWS instance on Centos 7 with FTP server. When I try to connect to FTP server via PuTTY, it is able to work.

When I try to connect to a FTP server, WinSCP make a connection to read the remote directory it shows the following error message:
Timeout detected. (data connection)

Could not retrieve directory listing
Error listing directory '/home/ftpuser'.

I have checked that the directory /home/ftpuser does exist and as seen in some forums, I have also tried adding additional firewall rules, adding ports 20, 21, 1024–1048, and checking the 3 FTP boxes in Windows firewall advanced settings but to no avail.