Hi all,
> On the way to find out what causes this difference I inserted a check into
> ssh2.c to see what authentication methods are allowed:
> http://libssh2.cvs.sourceforge.net/libssh2/libssh2/example/simple/ssh2.c?r
> 1=1.6&r2=1.7
> but now when I compile the ssh2 sample with this code it allways fails --
> even against the boxes where the auth previously seemed to work! What am I
> doing wrong? Or what's going on there....?
even more weird:
if I replace the line:
userauthlist = libssh2_userauth_list(session, NULL, 0);
with:
userauthlist = libssh2_userauth_list(session, username, sizeof(username) );
then the oldest OpenSSH box (SuSE 7.0) works again, while all others keep failing!!
oh, the reason why I first passed in NULL as username was the comment in userauth.c:
/* {{{ proto libssh2_userauth_list
* List authentication methods
* Will yield successful login if "none" happens to be allowable for this user
* Not a common configuration for any SSH server though
* username should be NULL, or a null terminated string
*/
a bit clueless....
Guen.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-07-18