According to http://api.libssh.org/stable/index.html libssh supports hostbased authentication. However, I have yet to be successful using it and cannot find an example of someone else doing it.
I am trying to write a client to connect to an openssh-server v6.7. I did not see an authentication function related to hostbased in http://api.libssh.org/stable/group__libssh__auth.html so I tried loading the private key for the client with ssh_pki_import_privkey_file() and then authenticating with ssh_userauth_publickey(). I have also tried ssh_userauth_none() and skipping that step. I did successfully authenticate with a public key and with a password. Is hostbased authentication supported on the client and if so how would I go about it? Thank you, -- Chris DeJager
