• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Resolved How to set FTP with Passive mode, or SFTP

CoyoteKG

Regular Pleskian
Hi,

recently I turn on firewall on this server, and I was not able to connect to FTP with regular user.
I'm able to connect with root account to SFTP
But when I create FTP users for webspace, I can only use FTP protocol, only Active mode, and no encryption.

Of course, I searched documentation, and some tutorials before this post.

Firstly from this article I was open port 20 in firewall, and after that I was able to connect but with Active mode.

Also from this article I tried to enable Passive mode.
I created file /etc/proftpd.d/passive_ports.conf with
PassivePorts 49152 65000

I opened those ports in firewalls but no success.

At this moment I can only connect with Active mode and No encription.
Also if I check SSL/TLS explicit encryption, connection stuck on
Timeout detected. (data connection)
Could not retrieve directory listing
Error listing directory '/'.

Also my first question, is it possible to force all FTP accounts to use SFTP protocol?


I'm using Plesk Onyx on Centos 7.3
 
Hi, yes I mixed SFTP and FTPS.

FTPS is FTP with SSL/TLS encryption?

I have installed SSL for server, but I can log only if I check in ftp-client "No secure".
If I check SSL/TLS Explicit encryption

I got this like TLS connection is established, and client is connected, but after that I'm getting "error listing directory '/'

upload_2017-3-28_11-15-15.png

Timeout detected. (data connection)
Could not retrieve directory listing
Error listing directory '/'.

If I switch again to "no encryption" or "plain FTP" I'm able to connect
 
Hi Peter, I wrote already that I was set client for Active mode. And I created file /etc/proftpd.d/passive_ports.conf with
PassivePorts 49152 65000.
Also I opened those ports in hosting firewall, and disabled Plesk's firewall.

Also I noticed if I'm using
- Active mode + No Encryption - I'm able to log in
- Active mode + SSL Explicit Encryption - I got Error listing directory '/'.

I'm trying with WinSCP and FileZilla.


edit:
I noticed that .conf file I just added
PassivePorts 57000 59000, did not added it in global tags. I will try now
 
Back
Top