Skip to main content
Participant
August 25, 2026
Question

Web module SFTP upload fails because of wrong initial directory passed to cURL

  • August 25, 2026
  • 0 replies
  • 12 views

LR Classic 15.5, Windows 11 Pro

Trying to connect to an SFTP server, either to browse for a folder in the “Configure FTP Transfer” dialog, or to upload a project, fails with the error:

“Cannot browse the FTP server, because an unknown error occurred. (CURLE_SSH)”

On the SFTP server side, the error is:

Aug 25 20:57:39 pi1 sftp-server[811]: error: process_read: read "/home/jsmith": Is a directory

where “jsmith” is the user connecting to the server. So the error is trying to read the user home directory. For a while cURL accepted the “/~” path for the user home directory, but since 2023 this syntax is no longer accepted, see:

https://github.com/curl/curl/issues/17534

It is necessary to terminate all directory references with an ending slash, i.e. “/~/”  or (79) Error in the SSH layer (CURLE_SSH) is raised.

I can replicate the same error easily from the command line:

curl --k sftp://<sftp_server>/~ --user "<user>:<password>

triggers the same error

curl --k sftp://<sftp_server>/~/ --user "<user>:<password>”

does not trigger the error.

I have a customer that wants previews of the shots directly updated to theirs SFTP server for security reasons, from which they can peruse them via their internal web server, right now I have to do it manually after exporting.