curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

libssh2 problem: -7 Unable to send FXP_CLOSE command

From: Christian Schmitz via curl-library <>
Date: Tue, 19 Nov 2019 07:47:14 +0100


Has anyone seen this error with SFTP file upload?

  Trying SomeIP...
Connected to SomeIP (SomeIP) port 22 (#0)
SSH MD5 fingerprint: xxxx
SSH authentication methods available: publickey,gssapi-keyex,gssapi-with-mic,password
Using SSH private key file ''
SSH public key authentication failed: Unable to extract public key from private key file: Unable to open private key file
Initialized password authentication
Authentication complete
Failed to close libssh2 file: -7 Unable to send FXP_CLOSE command
Closing connection 0

The file is created, but not closed and appears on server with zero bytes length.


Read our blog about news on our plugins:
Received on 2019-11-19