title: Read a file from Linux Server through java program
body: <p>I have my Java Program which is running on the windows machine. From this Window machine i need to read a file from the Linux server.
  I have write this code to authenticate with the Linux Server, and its working fine</p>
  
  <pre><code>session = jsch.getSession("root", "ServerIP", 22);
              session.setConfig("StrictHostKeyChecking", "no");
              session.setPassword("Passwrod");
              session.connect();
              System.out.println("Server is connect");
  </code></pre>
  
  <p>I can see "Server is connect" is printing on my machine that's mean authentication is done with the server.
  And now there is need to read the file from this server and i have write this code</p>
  
  <pre><code>try
              {
              File file = new File("/var/log//callrec/core1.log");
              LineNumberReader sc = new LineNumberReader(new FileReader(file));
              }
              catch(Exception e)
              {
                  e.printStackTrace();
              }
  </code></pre>
  
  <p>But its throwing file not found exception.
  Can any body guide me how can i solve this.</p>