Re: [JSch-users] problem with the connection sftp
Status: Alpha
Brought to you by:
ymnk
From: <ym...@jc...> - 2012-03-06 06:43:38
|
Hi, +-From: Diego Marconato <lew...@ho...> -- |_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 |