Channel channel=session.openChannel("exec");
((ChannelExec)channel).setCommand(command1);
channel.setInputStream(null);
InputStream in=channel.getInputStream();
final InputStream errStream = ((ChannelExec)
channel).getErrStream();
channel.connect();
获取通道退出状态为-1