throw new SSHApiException("Unable to retrieve command output. Command - " + command +
" on server - " + session.getHost() + ":" + session.getPort() +
" connecting user name - "
+ session.getUserName(), e);
}
stdOutReader.onOutput(channel);
if (!stdOutReader.getStdErrorString().equals("")) {
throw new SSHApiException(stdOutReader.getStdErrorString());
}
channel.disconnect();