File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes ssh requirements help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "ssh requirements help" Watch "ssh requirements help" New topic

ssh requirements help

Sireesh Ganagam

Joined: May 08, 2012
Posts: 28
Hello all,

How you doing i need help regarding using ssh, sftp.

I have tried using sshxcute open source project, ran into issues not sure if other open source projects works the same way.

Below is My requirement : I need to these task on linux box from windows)

1. Navigating directories on remote box
2. Executing commands
3. uploading files to remote box
5. download files from remote box
6. wait the process until it completes execution of shell script and pull the log files

Issues i have faced with sshxcute are

Is there any interactive ssh tools like how we do in putty. is there any industry standard APIs are existed to use.

Appreciated all your inputs
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Are you facing a problem with this code? You should check the Result objects for success/failure and act on those accordingly.

One thing I noticed is that line 5 seems to be missing a leading slash - just a copy/paste error?

There is no standard API for this. JSch is a common library to use, and I see this library uses JSch underneath.
I agree. Here's the link:
subject: ssh requirements help
jQuery in Action, 3rd edition