Skip to main content

FTP Connection Issue

Comments

8 comments

  • RootJohn
    So I figured out that there's more information if I scroll down, I found two places that I uncommented and modified. 1) I have enabled PassivePortRange 30000-50000 2) I have enabled ForcePassiveIP myIPhere (blocked for security purposes) I am now getting the following:
    Status: TLS connection established. Status: Logged in Status: Retrieving directory listing... Command: PWD Response: 257 "/" is your current location Command: TYPE I Response: 200 TYPE is now 8-bit binary Command: PASV Response: 227 Entering Passive Mode (X,X,X,X,184,114) Command: MLSD Error: Connection timed out after 20 seconds of inactivity Error: Failed to retrieve directory listing
    0
  • cPanelMichael
    Hello :) Have you verified those ports are allowed in your firewall? We have a document on this at: How to Enable FTP Passive Mode - cPanel Knowledge Base - cPanel Documentation Thank you.
    0
  • RootJohn
    I have opened the ports at the networking layer and telnet does respond with 220 --------------Welcome to Pure-FTPd [privsep] [TLD] 220 --------------You are user number 1 of 50 allowed 220---------------Local time listed... 220---------------This is a private system - No Anonymous Login 220---------------...... I also followed the entire Pure-FTPd doc to enable the passive and etc. To me it sounds like there isn't a default directory set for the FTP users to load?
    0
  • cPanelMichael
    FTP users are presented with their document root directory upon login, unless a directory is manually specified in the FTP client. Do you have a firewall management utility such as CSF installed on this system? To clarify, does the issue persist after following the steps in the document? Thank you.
    0
  • RootJohn
    Var/logs/messages in vi editor mode using the :~ command was used to locate the latest logs which stated the user was signed out after the user was logged in. Issue was fixed by also including the passive ports 30K-50K within the networking layer firewall.
    0
  • cPanelMichael
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0
  • RootJohn
    Issue returned today... the only way I was able to make it list the directories was by allowing all ports from the firewall to go through. However, if i restricted it to the following ports: 80 2082 2083 2086 2087 2089 3306 443 21 22 20 30,000-50,000 It would begin to not list the directories. Any idea why?
    0
  • cPanelMichael
    Issue returned today

    The fact that the issue returned suggests one of the changes you made was not preserved. Please verify that you modified /var/cpanel/conf/pureftpd/main as suggested in step 8 of the document referenced below: How to Enable FTP Passive Mode - cPanel Knowledge Base - cPanel Documentation Thank you.
    0

Please sign in to leave a comment.