public Ssh(Resource resource, String basePath) throws Exception
{
super(resource, basePath);
JSch jsch = new JSch();
Properties config = new Properties();
config.put("StrictHostKeyChecking", "no");
session = jsch.getSession(resource.getString("user"), resource.getString("host"), Integer.parseInt(resource.getString("port")));
session.setConfig(config);
session.setPassword(resource.getString("pw"));
session.connect();
channel = (ChannelSftp) session.openChannel("sftp");