throw new IllegalArgumentException(
"paramkey dir is not set properly, the correct sftp path format like: "
+ "sftp://[<user>@]<host>[:<port>]/<path>/<file>");
}
PCInfo pi = new PCInfo();
pi.setIp(host);
pi.setPort(port);
pi.setUser(username);
pi.setPwd(password);
pi.setPath(path);
try {
session = jsch.getSession(username, host, port);
session.setUserInfo(pi);
session.connect();