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

Advertisement

ming08
Joined:
Posts:
2

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,984
Location:
Prague, Czechia

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.

Reply with quote

ming08
Joined:
Posts:
2

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,984
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum