Hi

> Is session.setPortForwardingL(3389, targetHost, targetPort) enough for
your purpose?  

No, as the ssh connection may only be started, IF there is really a client
connecting to that forwarded port.
Session.setPortForwardingL however requires the ssh connection to be
established.

> If you really want to plug your own I/O stream to the remote, could you
try 
>   http://www.jcraft.com/jsch/examples/StreamForwarding.java
> with the latest version (for example, 0.1.42)?

First, I updated to the latest version yesterday, but my problem remained.

I am not really sure, how to try StreamForwarding.java, but I tried to
connect to a http Server of mine and got an expected response...

I am not sure, if my connection between setInputStream of the channel and
getInputStream of the socket is correct...


Regards,
   Steffen

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to