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 -- Swish - Easy SFTP for Windows Explorer (http://www.swish-sftp.org) _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
