Report this

What is the reason for this report?

FTP Acces is blocked

Posted on March 3, 2020

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi,

Could you please run this command and post result ?

cat /etc/pure-ftpd/conf/PassivePortRange

Best regards,

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.