Thanks for response,
I already tried userauth_list and it returns NULL.
Based on your explanation i comes to know that, ssh server should be
configured as none. It seems server issue.

Thanks
Kishore
On 17-Jul-2015 2:47 pm, "Peter Stuge" <pe...@stuge.se> wrote:

> Kishore Av wrote:
> > I could able to connect ssh server only with username and without
> > providing the password manually.
>
> Did you study the protocol specification?
>
> RFC 4252 5.2.  The "none" Authentication Request
>
>    A client may request a list of authentication 'method name' values
>    that may continue by using the "none" authentication 'method name'.
>
>
> > Is there a way to connect that server through libssh2 ?
>
> As I wrote, the libssh2 API matches the protocol API closely.
>
>
> > If so, which API can be used to connect?
>
> Did you study the library API documentation?
>
> /* libssh2_userauth_list
>  *
>  * List authentication methods
>  * Will yield successful login if "none" happens to be allowable for this
> user
>
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to