title: Using JAVA API to execute shell script on remote server
body: <p>I am trying to run a shell script on a remote server using a JAVA API. The remote server has authentication , so i have to pass my username and password to login to it.
  I do not have the rights on these machines (neither source nor destination) to install 'sshpass' , in case you were going to give that solution.</p>
  
  <p>What is the best way to do this?</p>