my dog learned polymorphism*
The moose likes Java in General and the fly likes Execute a command on a remote Shell using JSCH Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Execute a command on a remote Shell using JSCH" Watch "Execute a command on a remote Shell using JSCH" New topic
Author

Execute a command on a remote Shell using JSCH

Marco Zanini
Ranch Hand

Joined: Oct 31, 2011
Posts: 43
Hi to all, I'm trying to remotely execute a command on a Linux shell using SSH. I'm using JSCH. But sometimes when I call the connect(int timeout) command it doesn't work, and sometimes seems that it blocks.

This is the code:

How can I develop an error-proof connection?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Execute a command on a remote Shell using JSCH