[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Authentication method
[Thread Prev] | [Thread Next]
- Subject: Authentication method
- From: Fabio Leone <fab.leo@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Sat, 12 Jul 2014 10:28:33 +0200
- To: libssh@xxxxxxxxxx
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);
...
}
| Re: Authentication method | Aris Adamantiadis <aris@xxxxxxxxxxxx> |