session = jsch.getSession(username, host, port);
} else {
session = jsch.getSession(username, host);
}
if (pemFile != null) {
jsch.addIdentity(pemFile.getAbsolutePath(), pemPassword);
}
session.setUserInfo(new CfUserInfo(host, username, userPassword, pemFile,
pemPassword, passFile));
session.connect();
Message.verbose(":: SSH :: connected to " + host + "!");