Subject: known_hosts support (first take)

known_hosts support (first take)

From: Daniel Stenberg <>
Date: Mon, 4 May 2009 13:13:29 +0200 (CEST)



I intend to bring some old work back to life. This is the last of the previous
known hosts support patch I know of:

My idea is to write/offer functions for libssh2 that can:

  A read the known_hosts file(s) and keep a set of hosts/key pair in memory
  B compare a host/key with the known set to see if it exists and if so if it
    matches the key
  C add/replace a host key/key in the in-memory set
  D write the in-memory set to a file
  E extract an (OpenSSH-compatible) key for key checking - from a connected

That patch I link to above doesn't seem to offer D and E, but does at least
parts of A, B and C.

I'm open for feedback and comments on this. I've not yet figured out the (E)
part so I'm perhaps most interested on that... How does libssh2_hostkey_hash()
relate to all this?

Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3.
libssh2-devel mailing list
Received on 2009-05-04