cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl+sftp+man-in-the-middle-attck.

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 14 Mar 2014 18:01:37 +0100

On Fri, Mar 14, 2014 at 10:10:25PM +0530, san d wrote:
> I have the following code:
>
> curl_easy_setopt(curl, CURLOPT_SSH_AUTH_TYPES, CURLSSH_AUTH_ANY);
> curl_easy_setopt(curl, CURLOPT_USERNAME, userName);
> curl_easy_setopt(curl, CURLOPT_PASSWORD, Passwd);
> curl_easy_setopt(curl, CURLOPT_KEYPASSWD, Passwd);

Very conspicuously absent from this list is the
CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 option.

> In this regard i wanted to know whether curl provides the following:
>
> ---A way to access the remote-host-key of the newly established connection.
> ---A way to pass the already available remote-host-key of the SFTP destination.
> ---Any other way that curl might already have. 

Have you read the SSH section of
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html ?

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