On Jul 19, 2007, at 8:40 PM, Guenter Knauf wrote: > Hi Jim, >> I don't know how the keyboard-interactive works. But looking through >> the code, the call back function is passed an array of prompts and >> must return an array of answers. > > I've cloned the related part from curl; > the attached version works now with both password and keyboard- > interactive (public key not tested yet); > probably a stupid implementation, but couldnt yet come up with > something better in my limited time. > > what do you think? should I check this in? Or do you have a better > idea? > > greets, Guen. > > <ssh2.c>
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. 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel