Re: [JSch-users] Instruct Jsch to tell server to authenticate with "password" authentication
Status: Alpha
Brought to you by:
ymnk
From: Bradley W. <bra...@ha...> - 2010-07-29 03:44:54
|
On Tue, Jul 27, 2010 at 11:00 PM, Bradley Wagner <bra...@ha...> wrote: > On Tue, Jul 27, 2010 at 10:40 PM, Atsuhiko Yamanaka <ym...@jc...> wrote: >> Hi, >> >> +-From: Bradley Wagner <bra...@ha...> -- >> |_Date: Tue, 27 Jul 2010 22:24:34 -0400 _________________ >> | >> >> I guess that you had logged-in with keyboard-interactive auth >> >> method with other ssh clients. �,A If so and you don't want to >> >> implement the com.jcraft.jsh.UIKeyboardInteractive interface , >> >> try jsch-0.1.43 . >> |How would this affect authentication being done with JSch? Also, >> |what has changed in jsch-0.1.43 to affect this? >> >> Since 0.1.43, the password given by Session#setPassword() will be >> tried for keyboard-interactive auth method if Session#setUserInfo() >> is not invoked. > > I was wondering about Session#setUserInfo. What's the advantage of > using UserInfo over to just setting the password field? Will using > this instruct the server to connect with the password auth method > first? > > To give you some background, we're coming from j2ssh where there was a > clear notion of which auth method the client would suggest to the > server depending on the type I did some research on this and it definitely appears that the SSH protocol supports clients suggesting/requesting which auth method to use when connecting. j2ssh used to use to do this for us. Does JSch allow us to something similar? I believe j2ssh used the message id 50 which it called SSH_MSG_USERAUTH_REQUEST. Would it also be possible to get some documentation on UserInfo interface and it's methods. I'm not clear about what they all do. John Stote did provide me some implementation examples. |