Hi all,
I must use SFTP (SSH) to send one file in a server. With Filezilla all are OK. But with libcurl I have ‘Failed initialization’ error and I don’t know how can I fix it. All the parameters are OK and wiht Filezilla I can send the file correct. Can anyone help me?
Hello Mike and thank you for your help.
The error that I have is : TEXT: SSH public key authentication failed: Unable to extract public key from private key file: Unable to open private key file
But I don’t have any “public key”.
Thanks in advance!
PublicKeyMD5 field was introduced in v1.37, current is 1.48.
Regarding “Failure initializing sftp session: Unable to request SFTP subsystem” error - never seen this before, google forwards to libssh2 library, which is used by libcurl, so maybe recent builds fix this issue.
I found similar question here, not related to curl though, and with no reasonable answer. Another similar thread. What I think is sftp server configuration is not correct. FileZilla knows how to bypass this, curl doesn’t.
I don’t think so. libssh2 just reports that something goes wrong on server side.