On 12/01/2009 06:04 AM, Paul Michael Reilly wrote: > On 12/01/2009 05:23 AM, Paul Michael Reilly wrote: ... > I've been studying the command line implementation of this feature to > try to map it into JSch terminology. The command line uses "dynamic" > port forwarding, i.e. the "-D port" switch on the ssh command. Now I'm > thinking that this is not something that JSch supports or supports in > such a way that it is not at all obvious that the two are connected. So > to be real clear, here is what I have now: ...
Silly me. I should have done a better search. Turns out that this feature "dynamic port forwarding" is not implemented yet in JSch but Atsuhiko kind of showed some interest in implementing it. I am also inclined to take a crack at it if only because it looks like it might be fun. Here's the approach I would take: Study the OpenSSH implementation of the -D switch; map that solution to a method on the Session class, probably very similar to local and remote port forwarding, possibly Session.setPortForwardingD(port, host); send a patch to Atsuhiko; make a git branch available for testers. If you think you can save me time and effort or that the approach is half-baked, I'd love to hear your opinions and suggestions. And off we go ... :-) -pmr ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users