FTP over SSL Backup repository fails: Curl error: Login denied

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Windows
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:44:47 UTC

Modified:

2017-01-18 16:49:42 UTC

0

Was this article helpful?


Have more questions?

Submit a request

FTP over SSL Backup repository fails: Curl error: Login denied

Symptoms

vsftpd FTP-server is used as remote FTP server.

Unable to create a backup to the Personal FTP repository over SSL

Error: FTP connection failed, please check your FTP settings.
Repository error: Transport error: unable to list directory: Curl error: Login denied

OR

Repository error: Transport error: unable to list directory: Curl error: FTP: couldn't retrieve (RETR failed) the specified file

However it is possible to connect with Filezilla or other ftp client tool, over SSL.

Cause

Misconfiguration of the vsftpd on the FTP server. The require_ssl_reuse=NO should be added to the /etc/vsftpd/vsftpd.conf file.

Resolution

Try to upload test file using curl:

# touch /usr/local/psa/PMM/tmp/testfile
# curl -v -k --ftp-ssl ftp://192.0.2.2 --user ftpuser:ftp_user_password_here --upload-file /usr/local/psa/PMM/tmp/testfile

where 192.0.2.2 is IP-address of the FTP server, ftpuser is a ftp user and ftp_user_password_here is a ftp user password

Check the output for errors. If the error contains the session reuse required error:

522 SSL connection failed; session reuse required: see require_ssl_reuse option in vsftpd.conf man page
* server did not report OK, got 522

add the require_ssl_reuse=NO to the /etc/vsftpd/vsftpd.conf file and restart vsftpd:

# service vsftpd restart

Information regarding vsftpd configuration can be found here .

Have more questions? Submit a request
Please sign in to leave a comment.