Subject: host + key pairs for known_hosts

host + key pairs for known_hosts

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 6 May 2009 11:54:07 +0200 (CEST)

Hello

I'm currently working with a local libssh2 that has a fancy new function:

         key = libssh2_session_hostkey(session, &len);

It provides the raw server key. If I base64 encode it, I can grep for it in my
~/.ssh/known_hosts and I can see match(es).

Now, this seems to be a description of the known_hosts file currently in use
by openssh: http://nms.lcs.mit.edu/projects/ssh/README.hashed-hosts

IOW, they no longer store the host name in the plain, but only as a sha-1 hash
with a 64bit salt. This will have some impact on how we can do the host + key
pairs and check for existing keys.

-- 
  / daniel.haxx.se
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-05-06