Re: [JSch-users] Auth cancel
Status: Alpha
Brought to you by:
ymnk
From: Ehud K. <ehu...@gm...> - 2010-06-14 16:30:13
|
Hi Atsuhiko, it turns out someone changed the password and did not tell me. all is working well now. thank you. On Mon, Jun 14, 2010 at 12:44 AM, Atsuhiko Yamanaka <ym...@jc...> wrote: > Hi, > > +-From: Ehud Kaldor <ehu...@gm...> -- > |_Date: Fri, 11 Jun 2010 21:34:29 -0700 ______ > | > |i am trying to connect, and getting the following exception: > |com.jcraft.jsch.JSchException: Auth cancel > | at com.jcraft.jsch.Session.connect(Session.java:451) > | at com.jcraft.jsch.Session.connect(Session.java:150) > ... > > | JSch jsch = new JSch(); > | log.debug("jsch created"); > | session = jsch.getSession(userInfo.getUsername(), > |ip.getIpString(), Tweaks.getInt("network.port.ssh")); > | log.debug("session acquired from jsch"); > | session.setUserInfo(userInfo); > > How about the definition of userInfo? > I guess that the keyboard-interactive auth method is expected > on the remote. If so, userInfo must implement > com.jcraft.jsch.UIKeyboardInteractive interface. > > > Sincerely, > -- > Atsuhiko Yamanaka > JCraft,Inc. > 1-14-20 HONCHO AOBA-KU, > SENDAI, MIYAGI 980-0014 Japan. > Tel +81-22-723-2150 > +1-415-578-3454 > Skype callto://jcraft/ > Twitter: @ymnk > |