title: ssh in java (run commands on another machine)
body: <p>I was wondering whether there was a simple way to do this as part of a java program.</p>
  
  <p>I would like to be able to ssh into another machine and perform commands on that machine.</p>
  
  <p>A simple example would be:
      runtime.exec("say hello world");
  would (on a mac) have a text-to-speech engine speak hello world.</p>
  
  <p>Is there a way to have java run this method on another machine?</p>
  
  <p>Also, assuming the above is possible, is there a way to  ssh into more than one machine at the same time?</p>
  
  <p>Thanks</p>