Subject: Problem with known_hosts

Problem with known_hosts

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


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

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
Received on 2011-03-02