Hi, +-From: Ben Sawyer <b...@telestream.net> -- |_Date: Mon, 9 Jan 2012 17:03:06 +0000 ____ | |I'm having some issues getting a basic implementation of Jsch to |work. I'm simply trying to perform an automated |(non-interactive) exec on the remote host. The Exec.java example |works fine when given the same credentials I am passing my test |class constructor (creds obscured in code below). I'm just |trying to figure out what I'm doing wrong. (Obviously this class |is written in a strange way, but it's only for proof of |concept). ... | | session.setUserInfo(new UserInfo() { | public String getPassphrase() { return null; } ...
Refer to Exec.java[1], and you will find that its UserInfo instance has also implemented "com.jcraft.jsch.UIKeyboardInteractive" interface. [1] http://www.jcraft.com/jsch/examples/Exec.java Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 Skype callto://jcraft/ Twitter: http://twitter.com/ymnk Facebook: http://facebook.com/aymnk ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users