cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SSH tutorial

From: Abhishek Madaan <abmadaan_at_yahoo.com>
Date: Fri, 17 Sep 2010 10:40:05 -0700 (PDT)

Thanks for the reply. I want to use with my code. I thought since libcurl
supports SFTP it can be possible with curl command tool. If anyone can give me
example of just the usage of SFTP in libcurl i will really appreciate it.

Thanks

________________________________
From: Dan Fandrich <dan_at_coneharvesters.com>
To: curl-library_at_cool.haxx.se
Sent: Thu, September 16, 2010 2:26:07 PM
Subject: Re: SSH tutorial

On Thu, Sep 16, 2010 at 07:41:27AM -0700, Abhishek Madaan wrote:
> I am new in writing code with libcurl. I need to do data transfer to my SSH
> server. I know libcurl has support for SFTP. I don't know how to use it. These
> are things i wanted to do with my program.
> 1. First Connect to SSH server and prompt to user that you have been connected
> SSH server, you can do data transfer. If the connection is not setup, program
> should prompt connection failure.
> 2. Make a directory in SSH folder, transfer files from local drive to that
> folder.
> 3. Disconnect option and prompt user that you have been disconnected.
>
> If anyone can help me regarding this, i sure appreciate that.

Have you been able to do this with the curl command-line tool? Once you get
that going, the --libcurl option can be used to get a starting point for
code to do the same.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

      

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-17