www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: libssh2 - public key and/or password auth methods

Re: libssh2 - public key and/or password auth methods

From: Peter Stuge <peter_at_stuge.se>
Date: Thu, 23 Dec 2010 03:03:20 +0100

Mark Riordan wrote:
> How should an application determine whether both public key
> and password authentication methods are required?

libssh2 currently does not support that. It takes any insufficient
authentication to mean complete failure. Ie. libssh2 ignores the
"partial success" field in SSH_MSG_USERAUTH_FAILURE responses.

> I'm not sure how to determine the difference between a server
> that requires both, or will take either one.
> I was kind of expecting functions like
> libssh2_userauth_publickey_fromfile and libssh2_userauth_password
> to have a return code that says "successful so far, but more
> authentication is required".

That sounds good. Can you make a patch?

libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-12-23

the libssh2 team