• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue Unable to connect to FTP via

Robin McDermott

Basic Pleskian
Server operating system version
AlmaLinux 9.5
Plesk version and microupdate number
Plesk Obsidian 18.0.66 Update #2
I am having trouble connecting to my website via FTP. I am using Filezilla and here is what I get:

Status: Disconnected from server
Status: Connecting to [IP Address]:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode ([IP Address],240,41).
Command: MLSD
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Connecting to [IP Address]:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...

Replaced my IP address with [IP Address]

Protocol is FTP
Port is 21
The encryption option I have selected is Use explicit FTP over TLS if available.

Port 21 is open on our firewall to my IP address.
 
Perhaps they are not. In filezilla, I am able to get into the site if I specify Active in the Transfer setting and Only Use Plain FTP in the Encryption. Otherwise I am not able to access the site via FTP. So, is it safe to assume that this is the issue?

I have been going around in circles with my hosting company, so I want to be able to tell them exactly what needs to be set on my hardware firewall so that I can access my domains securely.
 
Check the passive ports set in Proftpd:
Bash:
grep Passive /etc/proftpd.* -r
/etc/proftpd.conf:PassivePorts ????? !!!!!

Check the Plesk firewall if the ports are enabled:
Bash:
iptables -S INPUT | grep <?????? = first port from the previous step>
-A INPUT -p tcp -m tcp --dport ?????:!!!!! -j ACCEPT

The range ??????:!!!!! has to be allowed in your hardware firewall. If the range is too big, you can customize it and add a custom rule in the Plesk firewall.
 
I had this exact issue. I fixed it by adding the passive port range (49152-65535) to "My firewall policy" in Cloud servers panel. under network->firewall policies...
 
Back
Top