Hello,
I’m having some issues with access to FTP. I’ve used the Marketplace install of Cyberpanel and for some reason when I add an FTP user and try to log in, I’m constantly getting “The data connection could not be established: ECONNREFUSED - Connection refused by server”. I’ve double-checked all Firewall settings and everything seems to be ok. By default, all the correct ports were opened with the “one-click install”. I’m kind of at a loss at this point and not really sure where to check next. Hoping I can get some help on this so I can get access to FTP upload/download for my domain.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
3 answers

Hi,

Could you please run this command and post result ?

cat /etc/pure-ftpd/conf/PassivePortRange

Best regards,

  • Hi, thanks for your response.

    This is the result I got

    40110 40210

    • okay , now please run

      dpkg -l | grep pure-ftpd
      

      and post the result.

      • rc pure-ftpd 1.0.46-1build1 amd64 Secure and efficient FTP server
        ii pure-ftpd-common 1.0.47-3 all Pure-FTPd FTP server (Common Files)
        ii pure-ftpd-mysql 1.0.47-3 amd64 Secure and efficient FTP server with MySQL user authentication

        • okay , please run

          tail -f /var/log/syslog
          

          and then try access the FTP again , the log should output something , let’s see what you got.

          • Mar 3 20:27:55 cyberpanel-ubuntu-s-1vcpu-1gb-nyc1-01 pure-ftpd: (?@) [INFO] TLS: Enabled TLSv1.3 with TLSAES256GCMSHA384, 256 secret bits cipher
            Mar 3 20:27:59 cyberpanel-ubuntu-s-1vcpu-1gb-nyc1-01 pure-ftpd: (?@) [INFO] erich is now logged in

            Last log entry (I removed IP info from log)

            It’s strange because when I was using filezilla to connect to my A2Hosting - no issues. I am pulling my hair out over this one. I even thought it was Filezilla and downngraded to an earlier version thinking it might be something with their program - same issue.

          • [INFO] erich is now logged in

            but it says logged in ? you still got connection issue ?

Yes, still get this:

Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
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 (167,172,124,40,157,17)
Command:    MLSD
Error:  The data connection could not be established: ECONNREFUSED - Connection refused by server

Well, I figured this on out. For anyone who wants to use the Cyberpanel Marketplace Installation on a blank droplet - you need to change the IP address inside of this directory file:

/etc/pure-ftpd/conf/ForcePassiveIP

I am not sure WHY there was a random IP address set inside of this file, but once I changed the IP address to match my droplet’s IP address - it works flawlessly now.

Submit an Answer