On Jul 18, 2007, at 8:04 AM, Guenter Knauf wrote: > Hi all, > Paul brought here up that password authentication with the ssh2.c > sample permanently fails for him. > At fist I couldnt re-create that, probably because I tested against > older openssl versions: > >> What version of openssh does your linux box run that you are >> connecting too? >> Mine's using openssh-4.5_p1-r1. And what distro and release are you >> running? Redhat? Mandriva? Suse? *buntu? And what version? > I used: > SuSE 7.0 --> SSH Version OpenSSH_2.1.1, protocol versions 1.5/2.0 > NetWare 6.5 --> OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL > 1.8.2.0 18 Nov 2004 > > after Paul sent me credentials to test against his box I saw same > failing as he, > and then tested against some boxes which run newer openssl, f.e.: > SuSE 10.0 --> OpenSSH_4.1p1, OpenSSL 0.9.7g 11 Apr 2005 > > and there I also saw the authentication fail. > > 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?r1=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....? >
Using NULL is not really supported as noted in both the online docs and included man page for libssh2_auth_list. You really need to send the username you intend to use. Jim -- /"\ ASCII Ribbon Campaign . \ / - NO HTML/RTF in e-mail . X - NO Word docs in e-mail . / \ ----------------------------------------------------------------- http://www.FreeBSD.org The Power to Serve [EMAIL PROTECTED] http://www.TheHousleys.net --------------------------------------------------------------------- Progress (n) : What led from smart users in front of dumb terminals to dumb users in front of smart terminals. ------------------------------------------------------------------------- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel