cURL / Mailing Lists / curl-library / Single Mail


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

From: Dan Fandrich <>
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

> 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 ?

>>> Dan
List admin:
Received on 2014-03-14