• 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 Plesk Backup Manager - Problem with ftps and curl

udoersam

New Pleskian
Hello,

on my machine with Cents 6.8 and Plesk 17 I have a problem to use FTPs within the Backup Manager.
If I enable the option to use FTPS I will get the following error in Plesk:
Unable to access to the storage: Transport error: unable to list directory: Curl error: (7) Couldn't connect to server: Last FTP request: PASV Last FTP response: 227 Entering Passive Mode (185,9,31,175,217,4)
Make sure you have entered the correct storage settings. You can check them independently with the command:
curl -v --ftp-pasv --ssl -k -u user 'server'

If I try this code in console I will get the following error:
curl: option --ssl: is ambiguous
curl: try 'curl --help' or 'curl --manual' for more information

And if I use the code like this in the console:
curl -v --ftp-pasv --sslv3 -k -u user 'server'
Everything is fine.

So my question is: How to change the option of the curl call?

Hope someone can help me.

Best regards.

udoersam
 
The problem in outdated curl version on CentOS 6:

# rpm -qi curl
Name : curl Relocations: (not relocatable)
Version : 7.19.7 Vendor: CentOS
Release : 53.el6_9 Build Date: Mon Apr 3 21:14:07 2017

# curl -v --ftp-pasv --ssl -k -u user 'server'
curl: option --ssl: is ambiguous
curl: try 'curl --help' or 'curl --manual' for more information

I have updated it with

# rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-13.rhel6.noarch.rpm
# yum --enablerepo=city-fan.org update curl

And now I see:

# rpm -qi curl
Name : curl Relocations: (not relocatable)
Version : 7.56.0 Vendor: city-fan.org repo Index of /ftp/contrib

# curl -v --ftp-pasv --ssl -k -u user 'server'
Enter host password for user 'user':
 
Hi,

thanks for your answer. Curl is updated right now.

No I have the problem that
# curl -v --ftp-pasv --ssl -k -u user 'server'
will cause the following error:

* Failed to connect to xxxxxx port 21: No route to host
* Closing connection 0
* TLSv1.2 (OUT), TLS alert, Client hello (1):
curl: (7) Failed to connect to xxxxxxx port 21: No route to host

With option -sslv3 .
# curl -v --ftp-pasv --sslv3 -k -u user 'server'
everything is working fine

Is there any posibility to set --ssvl3 as default if --ssl is the option?

Thanks in advance.

Best regards.

udoersam
 
Try to add in panel.ini lines

[pmm]
ftpForbidReuseConnection = 1

and check if it helps.
 
Hi,

thanks for your answer.
The problem is still the same.

Curl error: (7) Couldn't connect to server: Last FTP request: PASV Last FTP response: 227 Entering Passive Mode(ip)

And in the terminal I have still this error:
* Failed to connect to xxxxxx port 21: No route to host
* Closing connection 0
* TLSv1.2 (OUT), TLS alert, Client hello (1):
curl: (7) Failed to connect to xxxxxxx port 21: No route to host

Any other ideas what to do?

Thanks in advance.

Best regards

udoersam
 
Hi,

after activating the passive ftp ports to forward to the ftp-server the backup is working fine right now with ssl.

Thanks for your help.

Best regards

udoersam
 
Back
Top