title: What is the difference between the 'shell' channel and the 'exec' channel in JSch
body: <p>I want to be able to send many consecutive command represented as strings within a Java application to a SSH server for execution. Should I use: </p>
  
  <pre><code>Channel channel = session.openChannel("shell");
  </code></pre>
  
  <p>-or-</p>
  
  <pre><code>Channel channel = session.openChannel("exec");
  </code></pre>