On 21.09.2015 19:33, Alexander Lamaison wrote:
> On 18 September 2015 at 10:35, Andreas Sommer
> <andreas.sommer87_at_googlemail.com> wrote:
>> I'm using libssh2_hostkey_hash(session, LIBSSH2_HOSTKEY_HASH_SHA1) as in
>> the example code , creating a fingerprint string like "11:22:...".
>> However this is not the fingerprint I get displayed when connecting with
>> "ssh HOSTNAME" for the first time, or when running "ssh-keygen -lf
>> PUBLICKEYFILE" against the server's public key.
> That hash is normally the MD5 hash, not the SHA1 hash. Try
Ah, makes sense. I didn't count the fingerprint size, else I would have
noticed. Got it working with MD5 fingerprints, thank you!
Received on 2015-09-22