cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SSH tutorial

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 16 Sep 2010 12:26:07 -0700

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
Received on 2010-09-16