IOStreamConnector output =
new IOStreamConnector(session.getInputStream(), System.out);
output.getState().waitForState(IOStreamConnectorState.CLOSED);
} else
System.out.println("Failed to start the users shell");
ssh.disconnect();
}
if (result == AuthenticationProtocolState.PARTIAL) {
System.out.println("Further authentication requried!");
}
if (result == AuthenticationProtocolState.FAILED) {