Hi.
I'm using libssh version 0.6.3.
When logging in on some servers ssh_userauth_list() returns zero (I call
ssh_userauth_none before).
What is the right way to access the server in that case?
This is a snippet of my code:
ssh_userauth_none (node.session, NULL);
node.auth_methods = ssh_userauth_list (node.session, NULL);
if (node.auth_methods & SSH_AUTH_METHOD_PASSWORD)
{
...
}
else if (node.auth_methods & SSH_AUTH_METHOD_INTERACTIVE)
{
...
}
else if ...
...
else
{
sprintf (p_auth->error_s, "Unknown authentication method for server
%s\n", p_auth->host);
...
}