}
public SSHChannel openSession() throws SSHException
{
start();
ChannelOpenMessage msg = new ChannelOpenMessage();
msg.setChannelId(chanId++);
msg.setChannelType("session");
msg.setInitialWindowSize(DEFAULT_WIN_INIT_SIZE);
msg.setMaxPacketSize(DEFAULT_PACKET_MAX_SIZE);
transport.writeMessage(msg);
ChannelOpenConfirmationMessage conf = null;
try {
conf = (ChannelOpenConfirmationMessage)queue.take();
} catch (InterruptedException ie) {