[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Authentication method
[Thread Prev] | [Thread Next]
- Subject: Re: Authentication method
- From: Aris Adamantiadis <aris@xxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Sat, 12 Jul 2014 21:43:46 +0200
- To: libssh@xxxxxxxxxx
Hi Fabio, This looks correct. Could you provide us the verbose log so we can see what the server is sending back? Thanks, Aris Le 12/07/14 10:28, Fabio Leone a écrit : > 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 | Fabio Leone <fab.leo@xxxxxxxxx> |
Authentication method | Fabio Leone <fab.leo@xxxxxxxxx> |