Subject: Problem with known_hosts

Problem with known_hosts

From: Pierre-Yves Fontaniere <pyf_at_cc.in2p3.fr>
Date: Wed, 02 Mar 2011 10:28:56 +0100

Hello

I have a problem with libssh2_knownhost_check telling me that the host
doesn't exist in known_hosts file.
It appears that when we have a known_hosts file with more than a name
and an IP-addr like :

host_alias,hostname,hostname_FQDN,host_IPADDR KEY_TYPE KEY

The function hostline create a list of only two hosts strings containing :
  - "host_alias"
  - "hostname,hostname_FQDN,host_IPADDR"

That is to say that when i try to verify that hostname_FQDN matches the
key, the function knownhost_check called by libssh2_knownhost_check will
return : LIBSSH2_KNOWNHOST_CHECK_NOTFOUND

I'm using libssh2 1.2.7 on AIX 6.1 / 5.3

Is it a bug or am i doing something wrong ? Should i only call
libssh2_knownhost_check with a not FQDN hostname ?

Thanks for all
Pierre-yves
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-03-02