title: remotely login into a linux system using java
body: <p>i want to remotely login into a linux system using java and then execute "df -h" command on that system,
  I am currently using this code </p>
  
  <pre><code>        String[] cm = {
                         "ssh",
                         "root@192.168.1.10" ,
                         "df -h"
  
                         };
  
           try
            {
             Process q=  Runtime.getRuntime().exec(cm);
             q.waitFor();
            }
  </code></pre>
  
  <p>Everything is working well but the problem is that a pop up appears for entering the host password manually...how can i automatically enter password using the java code</p>