On 21.09.2015 19:33, Alexander Lamaison wrote: > On 18 September 2015 at 10:35, Andreas Sommer > <[email protected]> wrote: >> Hey, >> >> I'm using libssh2_hostkey_hash(session, LIBSSH2_HOSTKEY_HASH_SHA1) as in >> the example code [1], 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 > LIBSSH2_HOSTKEY_HASH_MD5 > > Alex >
Ah, makes sense. I didn't count the fingerprint size, else I would have noticed. Got it working with MD5 fingerprints, thank you! - Andreas _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
