title: connecting the setInputStream and setOutputStream of the JSch to jTextField's
body: <p>I am new to java and i need help.
  I use the jsch libraries to create a SHH connection to a remote linux machine. In the next code, given from a tutorial of the JSCH creator, you can see it is implemented shell communication, it is a direct communication from a cmd window. You enter a command from the cmd window and you get aback the results in the cmd window.</p>
  
  <pre><code>String user = "username";
  String host = "hostname";
  
  session session=jsch.getSession(user, host, 22);
  String passwd = JOptionPane.showInputDialog("Enter password");
  session.setPassword(passwd);
  Channel channel=session.openChannel("shell");
  session.connect();
  channel.setInputStream(System.in);
  channel.setOutputStream(System.out);
  </code></pre>
  
  <p>How i can connect the next two lines to jTextField1 and jTextField2. To give an example i want to sen the command from the jTextField1 and to get the results from the jTextField2.</p>
  
  <pre><code>channel.setInputStream(System.in);
  channel.setOutputStream(System.out);
  </code></pre>
  
  <p>Thank you in advanced</p>