cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: SFTP example

From: Shehryar Khan <khans_at_ubermind.com>
Date: Wed, 14 Feb 2007 13:52:15 -0800

What I was looking for was sftp support, not ftps support (which
apparently is a separate beast altogether).

I was, however, just able to get my Cocoa Mac OS X program to
successfully connect to a remote SFTP server using libcurl.

Couple of observations:

i) version of curl that ships with OS X doesn't have built in sftp
support (thank you Dan for pointing that out)

ii) sftp support was added in version 7.16.1

iii) sftp support in version 7.16.1+ depends on the libssh2 library
which doesn't come pre-installed on Mac OS X

iv) to get sftp support working from within my application, my
application compiles in both the source for libcurl and libssh2 and I
toggled the appropriate defines in libcurl's config.h to enable sftp
support

Works like a charm. Thank you all!

thanks!

-shehryar

On Feb 14, 2007, at 12:22 PM, Dan Fandrich wrote:

> On Wed, Feb 14, 2007 at 11:53:05AM -0800, Shehryar Khan wrote:
>> I'm looking to add SFTP support to my Objective-C / Cocoa program
>> using libcurl and I thought I'd get it working using the command line
>> first to get a feel for what the curl opts would be.
> [...]
>> What am I missing here?
>
> Do you want SFTP or FTPS? It seems you're confusing them. SFTP
> support
> was only just added to curl version 7.16.1 while FTPS support has
> been in
> there for a while. If you are actually interested in FTPS, try using
> the --ftp-ssl option with a ftp:// URL instead of an ftps:// URL.
>
>>>> Dan
> --
> http://www.MoveAnnouncer.com The web change of address
> service
> Let webmasters know that your web site has moved
>
Received on 2007-02-14