Hi,

some advice .....

 Using the version of jsch jsch-0.1.46 in this way can connetermi sftp to the 
server:
 session = jsch.getSession (user, host, port);
 session.setPassword (password);
 session.setConfig ("StrictHostKeyChecking", "no");
 session.connect ();


 While using version 0.1.8 jsch-so:

 java.util.Properties sessionConfig = new java.util.Properties ();
 session = jsch.getSession (user, host, port);
 session.setPassword (password);
 sessionConfig.put ("StrictHostKeyChecking", "no");
 session.setConfig (sessionConfig);
 session.connect ();

 I have the following exception:
 com.jcraft.jsch.JSchException: Auth fail
 com.jcraft.jsch.Session.connect at (Unknown Source)
 ..............................................


 The latest version of the library requires the use of known_hosts?


 Thanks in advance

Diego (Italy - Venice)






                                          
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
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-dev2
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to