Hi ,

You can use ganymed-ssh2-build.jar to connect to linux from java code.Use this link - ch.ethz.ssh2