WaySSH ssh = WaySSH.ssh()
.toHost(workstation.getName())
.connect();
String cmd = String.format("sudo tar xpf - -C %s", target.getAbsolutePath());
RemoteCommand command = ssh.execute(cmd, is);
List<Exception> exceptions = command.getExceptions();
for (Exception exception : exceptions) {
exception.printStackTrace();
}
ssh.disconnect();