cURL / Mailing Lists / curl-library / Single Mail


Re: Retrieving MD5 key from sftp server

From: Daniel Stenberg <>
Date: Mon, 31 Oct 2016 12:40:54 +0100 (CET)

On Mon, 31 Oct 2016, Miro Janosik wrote:

> I'd like to know how to retrieve SFTP server's public key MD5 key from curl?
> I see that it prints it out in the console (when I try to connect with
> incorrect one), but how to get it into my c++ code? Is there some
> 'retrieval' method? Some callback that I did not find?

I don't think we provide such a mechanism.

> Alternatively, is there other way how to connect through c++ without knowing
> the public key's md5?

curl doesn't force you to limit the connections to known fingerprints, so

List admin:
Received on 2016-10-31