Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<body bgcolor="#ffffff" text="#000000">
I am working on a Java project that makes an extensive use of the
ExecChannel for SCP and executing commands on remote host.<br>
I have been using Jsch and it works pretty well. Sadly I cannot find a
good documentation about the Session/Channel model.<br>
At the moment I am working on the implementation of an UploadManager
that uses Scp. I want to be able to choose the number of scp threads.<br>
My problem occures when I try to create two (more than one)
ExecChannel in the same session. It makes the session to fall down
without throwing any exception.<br>
Do you know:<br>
1)How many channels are allowed per session (I read on google that 10
the default number for a sshd or OpenSSH)?<br>
2)Why is it not implemented in JSCH<br>
3)For successive scp command, should I create a new ExecChannel for
each SCP or use global ShellChannel and deal with StreamIn and
Thank you for helping,<br>
<div class="moz-signature">-- <br>
<p> 785 voie Antiope<br>
Zone Athélia 3<br>
13600 LA CIOTAT<br>
Portable : +33 6 25 41 59 59<br>
Std : +33 4 27 85 13 32<br>
Fax : +33 4 27 85 13 31<br>
Mail : <a href="mailto:renaud.pelissier@...">renaud.pelissier@...</a>
+-From: Renaud Pelissier <renaud.pelissier@...> --
|_Date: Tue, 29 Sep 2009 14:19:27 +0200 ___________________
|1)How many channels are allowed per session (I read on google that 10
|the default number for a sshd or OpenSSH)?
|2)Why is it not implemented in JSCH
It has been designed to run multiple channels on the single session.
You know that jsch has been included in Eclipse SDK since 3.0
and multiple exec channels have been run for CVS operations
all over the world every day.
The scp protocol is not documented and I have never seen its formal
definition. I guess the problem has come from your scp protocol
implementation. I had tried it and it has been included in Apache Ant,
but its implementation was not so trivial.
|3)For successive scp command, should I create a new ExecChannel for
|each SCP or use global ShellChannel and deal with StreamIn and
I'm sorry, but I could not understand above question.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.