in reply to Re^5: instantiating an SFTP object
in thread instantiating an SFTP object

If the remote host key is good enough for the given policy, the method returns a true value. Otherwise it returns undef and the error (or die_with_error) method can be used to find out the failure cause.
$ssh2->check_hostkey(LIBSSH2_HOSTKEY_POLICY_ASK) or $ssh2->die_with_error;
The 0-but-true value 00 is equal to LIBSSH2_KNOWNHOST_CHECK_MATCH.

Replies are listed 'Best First'.
Re^7: instantiating an SFTP object
by zentara (Cardinal) on Jun 14, 2017 at 12:52 UTC
    The 0-but-true value 00 is equal to LIBSSH2_KNOWNHOST_CHECK_MATCH.

    That's good isn't it? :-)


    I'm not really a human, but I play one on earth. ..... an animated JAPH