title: Is there any ssh client supporting java.nio.channels.SocketChannel?
body: <p>I developed a proxy application, by which users can telnet to it and send a "connect to xxx" command to connect to a ssh server. I use JSch as my ssh client:</p>
  
  <pre><code>JSch jsch = new JSch();
  Session session = jsch.getSession(username, ip, 22);
  Channel channel = session.openChannel("shell");
  InputStream inp = channel.getInputStream();
  OutputStream oup = channel.getOutputStream();
  MyReader myReader = new MyReader(userOutputStream, inp);
  new Thread(myReader).start();
  MyWriterThread myWriter = new MyWriter(userInputStream, oup);
  new Thread(myWriter).start();
  </code></pre>
  
  <p>then deal with input and output respectively in these two new threads. But the proxy's performance dropped rapidly with the increase of user amount for too many concurrent threads. So I want to use java.nio.channels.Selector and SocketChannel to decrease thread amount. However I can't find a ssh client supporting java.nio.*(e.g.: JSch, Apache sshd, sshtools, etc.). Does any other ssh client supporting java nio? Or are there some methods can connecting input/output stream with Selector and SocketChannel?</p>
  
  <p>Thanks a lot!</p>