Subversion Repositories SmartDukaan

Rev

Rev 33130 | Rev 33615 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33130 Rev 33471
Line 289... Line 289...
289
 
289
 
290
    }
290
    }
291
 
291
 
292
    private ChannelSftp setupJsch() throws JSchException {
292
    private ChannelSftp setupJsch() throws JSchException {
293
        JSch jsch = new JSch();
293
        JSch jsch = new JSch();
294
        Session jschSession = jsch.getSession("root", "192.168.179.131");
294
        Session jschSession = jsch.getSession("root", "172.105.58.16");
295
        // Session jschSession = jsch.getSession("root", "173.255.254.24");
295
        // Session jschSession = jsch.getSession("root", "173.255.254.24");
296
        LOGGER.info("getClass().getResource(\"id_rsa\") {}",
296
        LOGGER.info("getClass().getResource(\"id_rsa\") {}",
297
                getClass().getClassLoader().getResource("id_rsa").getPath());
297
                getClass().getClassLoader().getResource("id_rsa").getPath());
298
        jsch.addIdentity(getClass().getClassLoader().getResource("id_rsa").getPath());
298
        jsch.addIdentity(getClass().getClassLoader().getResource("id_rsa").getPath());
299
        // jschSession.setPassword("spic@2015static0");
299
        // jschSession.setPassword("spic@2015static0");