Subject: [libssh2] Fwd: libssh2_userauth_publickey_fromfile multiple tries problem

[libssh2] Fwd: libssh2_userauth_publickey_fromfile multiple tries problem

From: libssh sroschke <libssh.sroschke_at_googlemail.com>
Date: Thu, 4 Sep 2008 00:34:39 +0200

ieek, just replied to Daniel...

---------- Forwarded message ----------
From: libssh sroschke <libssh.sroschke_at_googlemail.com>
Date: Thu, Sep 4, 2008 at 12:32 AM
Subject: Re: [libssh2] libssh2_userauth_publickey_fromfile multiple tries
problem
To: Daniel Stenberg <daniel_at_haxx.se>

So to let you all know,

i invested some time, and tracked down the problem. While trying the 7th
key, the send(session->socket, ... ) function called in transport.c:780
fails (returns -1). The errno value is set to EPIPE (32), which makes me
believe that the problem is caused by the server, not by the client. Maybe
the server closes the connection after 7 tries, to prevent bruteforcing. So
it seems that the problem is not the libssh2 implementation, but the server
it connects to.

I thought it might be worth to know for you guys. Maybe someday somebody ask
such a question on the mailing list.

Anyway, thanks at least for your answer. :)

cu & take care
sebastian

On Tue, Sep 2, 2008 at 9:23 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Tue, 2 Sep 2008, libssh sroschke wrote:
>
> > Is there a reason why only 8 tries per connection are working? Is there a
> > way to allow more than 8 auth tries without re-establishing the
> connection?
>
> My advice for you is to load up the source code and see for yourself, or
> use a
> debugger and single-step into the call and see what you can learn.
>
> libssh2 is undermanned and does not get proper focus from any developers
> these
> days it seems, so prepare to role up your sleeves and do some shoveling.
>
> --
>
> / daniel.haxx.se
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> libssh2-devel mailing list
> libssh2-devel_at_lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libssh2-devel
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2008-09-04