title: Java equivalent of ssh bash command
body: <p>I would like to execute</p>
  
  <pre><code>ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=dev/null -i key.txt user@host 'cd some/directory; ./check status'
  </code></pre>
  
  <p>on Java and read the response it gives me. Can someone please tell me how I would go about doing this?<br>
  As you see from the command, the problem is that I need to execute only one command, and I am using a private key to get into the server without using any passwords or anything of the kind. Any help will be immensely appreciated, I am bashing my head against the wall trying to solve this.</p>