title: Simple SSH Tunnel in Java
body: <p>I want to create an SSH Tunnel in Java.  I noticed quite a few Java SSH libraries on <a href="https://stackoverflow.com/questions/995944/ssh-library-for-java">another post</a>.  Before I dig into each option, maybe someone can give me some code snippets of how they did it or at least tell me which client library would work best.</p>
  
  <p>I only need tunneling.  I won't need stuff like file transfers, terminal emulation, etc.  Is there a simple few lines of code that can forward a port on the server to work on my client's localhost adapter?  Ideally both client and server would be in Java, but I'll settle for just client for now.</p>