Skip to main content

FAQ: Why do I see "Failed to retrieve directory listing" errors during FTP authentication attempts?

Comments

10 comments

  • cPanelMichael
    Hello, You can check to ensure your server is properly configured for passive mode FTP by reviewing the following document: How to Enable FTP Passive Mode - cPanel Knowledge Base - cPanel Documentation Additionally, if you are using CSF, there's a thread on this topic at: SOLVED - passive mode on pure-ftp + configserver Thank you.
    0
  • Jerald Feller
    Hello, You can check to ensure your server is properly configured for passive mode FTP by reviewing the following document: How to Enable FTP Passive Mode - cPanel Knowledge Base - cPanel Documentation Additionally, if you are using CSF, there's a thread on this topic at: SOLVED - passive mode on pure-ftp + configserver Thank you.

    Thank you for your response. Yes I did look on that but I didnt change anything on the cofiguration file since that passive mode is enabled already or I'm getting it wrong. Here is the cofiguration for /etc/pur-ftpd.conf # Port range for passive connections replies. - for firewalling. PassivePortRange 30000 50000 and there is no CSF in my server so I guess its on IPTABLES -A INPUT -p tcp -m tcp --dport 30000:50000 -j ACCEPT
    0
  • cPanelMichael
    Hello, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.
    0
  • Jerald Feller
    Hello, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.

    Hi, Thank you for the response. I just figured it out and fixed the issue. This is no solve. Its weird though in the pure-ftpd.conf ForcePassiveMode public-ip-address is somehow changed and I dont know why.. havent touch that file ever since.. But btw its solve.. Thank you very much
    0
  • cPanelMichael
    Hello, Note the following post if you are using cPanel version 64: Permanently disable ForcePassiveIP option Also, ensure to use the instructions documented the below URL to ensure custom changes are preserved: FTP FAQ - Version 66 Documentation - cPanel Documentation Thank you.
    0
  • Michael Legg
    I'm having the same issue. I can connect via FTP but can't get a directory listing. I've tried everything mentioned in these forums including disabling CSF, but I still can't get FTP to work (Passive or active) Running cPanel 66.0.25 release
    0
  • Jerald Feller
    I'm having the same issue. I can connect via FTP but can't get a directory listing. I've tried everything mentioned in these forums including disabling CSF, but I still can't get FTP to work (Passive or active) Running cPanel 66.0.25 release

    Hi, try open your pure-ftpd.conf and disable ForcePassiveMode just comment it and try loggin in again in FTP. This solved my issue.
    0
  • cPWilliamL
    I am glad to hear your issue has been resolved. Thank you for sharing the solution!
    0
  • Michael Legg
    Hi, try open your pure-ftpd.conf and disable ForcePassiveMode just comment it and try loggin in again in FTP. This solved my issue.

    Thanks Jerard I have ... 1. Disabled passive mode completely. 2. Run these commands -> openssl dhparam -out /etc/ssl/private/pure-ftpd-dhparams.pem 2048 /scripts/restartsrv_pureftpd 3. Enabled Broken Clients Compatibility. I can now connect via FTP - at least in Active mode.
    0
  • cPanelResources
    cPanelResources submitted a new resource: [url=https://forums.cpanel.net/resources/faq-why-do-i-see-failed-to-retrieve-directory-listing-errors-during-ftp-authentication-attempts.595/][plain]FAQ: Why do I see "Failed to retrieve directory listing" errors during FTP authentication attempts?[/plain] - [plain]Learn why "Failed to retrieve directory listing" errors occur during FTP connection attempts.[/plain] Question: Why do I see "Failed to retrieve directory listing" errors during FTP authentication attempts? Answer: FTP uses a data port and a command port to transfer information between a client and a server. During an active mode session, the command port uses port 21 and the data port uses port 20. During a passive mode session, however, the data port does not always use port 20. Instead, a data port range of 49152 through 65534 is utilized by default...
    [url=https://forums.cpanel.net/resources/faq-why-do-i-see-failed-to-retrieve-directory-listing-errors-during-ftp-authentication-attempts.595/]Read more about this resource...
    0

Please sign in to leave a comment.