Am 08.09.2014 15:33, schrieb Chathuri Wimalasena: > Here is the code where we creating the session. > > public Session getSession(String remoteUser) throws Exception{ > > LoginConfigUtil loginConfigUtil = new LoginConfigUtil(); > String ticketCache = loginConfigUtil.searchTicket(remoteUser); > javax.security.auth.login.Configuration.setConfiguration(new > JaaSConfiguration(ticketCache)); > > JSch jsch = new JSch(); > JSch.setLogger(new MyLogger()); > > Session session = null; > try { > session = jsch.getSession(remoteUser, host, 22); > Properties config = new Properties(); > config.put("StrictHostKeyChecking", "no"); > session.setConfig(config); > session.connect(5000); > } catch (JSchException e) { > log.error("Authentication fails.." , e); > throw new Exception("Authentication fails..", e); > } > return session; > } > > Each method will first get the session object using this method > and then create a SFTP channel.
to rule out Kerberos, can you do a login with user/passwd or public key authentication. I never tried Kerberos, so I don't know effects that might come up. Cheers, Lothar ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce. Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users