I am connecting to Solaris and Linux system and executing two commands using version jsch-0.1.18. The first command succeeds but the second command fails only on Solaris. The second command works on Linux.
On debugging the code I found that the function getByte in IO.java throws an IOException, which causes Session to disconnect. This causes the second command to fail execution. The stack trace when IO.getbyte fails is:
The sample code which executes the commands is:
channel = (ChannelExec) session.openChannel("exec");
On second call it fails on - channel.connect() call.
Any help to resolve the problem would be appreciated.
Do you Yahoo!?
The all-new My Yahoo! Get yours free!
+-From: sf_testing_9_2004 sf_testing_9_2004 <sf_testing_9_2004@...> --
|_Date: Tue, 16 Nov 2004 15:39:27 -0800 (PST) ______________________________
|I am connecting to Solaris and Linux system and executing two
|commands using version jsch-0.1.18. The first command succeeds but
|the second command fails only on Solaris. The second command works
What kind of sshd is running on Solaris?
From SSH2 protocol specification of point of view, sshd may drop
the connection after first command execution.
If the recent sshd from OpenSSH is running there, such problems
should not happened, but I don't have an idea.
Get latest updates about Open Source Projects, Conferences and News.