Hi, +-From: Diego Marconato <lewisstra...@hotmail.com> -- |_Date: Mon, 5 Mar 2012 17:08:37 +0100 ______________ |
| While using version 0.1.8 jsch-so: | java.util.Properties sessionConfig = new java.util.Properties (); | session = jsch.getSession (user, host, port); ... | I have the following exception: | com.jcraft.jsch.JSchException: Auth fail | com.jcraft.jsch.Session.connect at (Unknown Source) | .............................................. The recent version has internaly implement a heuristics to use the given password for the keyboard-interactive authentication method. I must not recommend you to continue to use such a older version, but if you need to do it, implement your out UserInfo with UIKeyboardInteractive interface and set it to Session#setUserInfo() method. | The latest version of the library requires the use of known_hosts? On every jsch version, you should use the known_hosts file to work around the "man-in-the-middle" attack. 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 ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users