cURL / Mailing Lists / curl-library / Single Mail


Re: sftp help with curl-7.16.1 and libssh2-0.1

From: Mike Hanna <>
Date: Thu, 5 Apr 2007 18:20:54 -0700 (PDT)

Thanks for the quick reply. I did try using command line curl, but without success. Here's what I saw:

connect didn't happen
curl: (2) Authentication failure

Thanks for the help. I'll give the latest code a shot.

----- Original Message ----
From: Dan Fandrich <>
Sent: Thursday, April 5, 2007 8:44:23 PM
Subject: Re: sftp help with curl-7.16.1 and libssh2-0.1

On Thu, Apr 05, 2007 at 05:00:25PM -0700, Mike Hanna wrote:
> I'm trying to use curl for ftp, tftp and sftp in a linux appliance my company is working on. It's running on centos 4, so I build both the curl and libssh2 libraries on a build server and transfer them to a test machine. Ftp works fine for copying files to or from the server. Using the same code, sftp appears to connect but is having trouble opening a file for reading or writing. Here is the code I'm using to set up the transfer (same for both ftp and sftp):

sftp support is pretty new in libcurl and is still getting the kinks worked
out. I suggest trying the latest daily snapshots or CVS of both curl and

Have you been able to perform your sftp transfer using the curl command-line

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
Received on 2007-04-06