this was unintuitive for me (I would never have expected "readSSHChannel" to print to screen and/or os.exit(); granted it no longer does the latter, but still) - for now I'd propose adding a comment

// Read stdout from SSH channel and print to local stdout. If remote command fails, also read stderr and print to local stdout.
// Returns exit status from remote command.