On 11/17/08 05:36, Atsuhiko Yamanaka wrote:
> Hi,
> 
>    +-From: Ivan Soleimanipour <[EMAIL PROTECTED]> --
>    |_Date: Sat, 15 Nov 2008 17:54:28 -0800 __________________
>    |
>    |Is this a bug or by design?
> 
> By design.
> 
>    |Session.connect() goes through a series of authorisation methods.
>    |By default this includes
>    |gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive
>    |connect() first calls out to promptKeyboardInteractive().
> 
> You can change the order.
> 
>    session.setConfig("PreferredAuthentications",
>                      "publickey,password,keyboard-interactive");
                                            ^^^^^^^^^^^^^^^^^^^^

Did you mean w/o the keyboard-interactive?
That's what I ended up doing in the end.

>    session.connect();
>  
>    |If I cancel it it goes around the loop and calls out promptPassword()!
>    |Shouldn't cancellation short-circuit the auth loop?
> 
> You can skip it by yourself with your own UserInfo implementation, can't you?
> 

That's what I tried first, but it felt like a workaround.


-------------------------------------------------------------------------
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=/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to