Cannot make SFTP backup

tvdh

New member
Joined
Feb 10, 2023
Messages
6
Hi,

I set up an SFTP server and try to make a backup to it.
But constantly get error:

curl: (56) response reading failed
curl return code: 56

I try to reproduce with:
ftp_port=2202 ftp_local_file=file.txt ftp_ip=37.1xx.xx.xx ftp_username=xx ftp_password_esc_double_quote=xxxx ftp_path=/mnt/Backups/ws23/backups/ ftp_secure=ftps ./ftp_upload.php

But get same error

When I run:
curl -k sftp://3x.1xx.xxx.xxx:2202/mnt/Backups/ws23/backups/ --user xx
It works fine, its listing the contents of directory

When I run
curl -k sftp://3xx.1xx.xxx.xxx:2202/mnt/Backups/ws23/backups --user xx so with no / at end of path
I get the same error:
curl: (56) Failure when receiving data from the peer

I tried in Directadmin with and without / but nothing works.

Does someone have a solution?

Thanks!
 
Is this still an issue and require the solution provided above?
I do see an Secure FTP option in directadmin but i keep getting error that my FTP details in incorrect. However, i can connect to the sftp server no problem from anywhere but directadmin
 
Is this still an issue and require the solution provided above?
I do see an Secure FTP option in directadmin but i keep getting error that my FTP details in incorrect. However, i can connect to the sftp server no problem from anywhere but directadmin
+1 same for me
 
Back
Top