Subject: Re: [libssh2] libssh2-0.15 Problems authenticating

Re: [libssh2] libssh2-0.15 Problems authenticating

From: Guenter Knauf <eflash_at_gmx.net>
Date: Fri, 20 Jul 2007 03:21:06 +0200

Hi Jim,
> Couple of comments. I would think that public key should be used
> before password. Your if (auth_pw ... ) chain has a potential
> problem. If password auth is supported and fails, the other methods
> won't be tried, even if they might succeed. Other then that it looks
> good.
well, that was same as before - 'password' was even hardcoded with the
auth_pw = 1
in the var declaration. Also the original sample had everything harcoded;
but now I've changed the keyfile path to use "~" instead of "/home/username" + added an option to specify the auth method with a forth agument.... - so you can always explicitely tell the sample what method to use; I was also thinking of getting the keyfiles as argument, but then we should probably consider to use a small argument parser, or getopt().

ok, I check that now in so we have a base for further improvements.

greetz, Guen.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-07-20