SessionOutput sessionOutput = new SessionOutput();
sessionOutput.setHostSystemId(hostSystem.getId());
sessionOutput.setSessionId(sessionId);
Runnable run = new SecureShellTask(sessionOutput, outFromChannel);
Thread thread = new Thread(run);
thread.start();
OutputStream inputToChannel = channel.getOutputStream();