This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi to all, I'm trying to implement a program that connects to a remote computer using ssh, after connection I have to copy some files and execute some commands. I'm using Jsch for this purpose. The problem is that the connection with the exec channel works only sometimes. Here's the code:
I don't know if the problem is in the code or in the configuration of ssh on my own machine. It seems that the first time I run the program it works but then it does only sometimes.
I'm using linux and testing the program on my own machine (127.0.0.1).
I set the session timeout to 10000 and channel timeout to 3000.
Thanks in advance!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: [Jsch] channel.connect works only sometimes