I've had considerable success in writing my JSch based application to 
set up local and remote port forwards through an http proxy.  I've also 
added the keep-alive feature so that this application handles the normal 
occurrence of network ups and downs in stride and keeps on ticking (or 
connecting, less poetically).

Now I would like to add a socks5 connection to the mix and I have to 
confess that I'm more than a little overwhelmed on how to approach 
adding a socks5 capability.  The basic dilemma is that I need to set an 
http proxy on the session but since socks5 is also added to a session as 
a Proxy, I'm scratching my head on how to get both proxies working 
simultaneously.  Am I making this overly complex and there is really an 
easy way to do it?

As near as I can tell by reading the code, JSch handles multiple port 
forwards assigning them each to a separate thread.  But no such 
mechanism exists for proxies and this does seem to make sense.  What 
would have struck me more sensible would have been for JSch to treat a 
socks connection differently from an http proxy for example. 
Admittedly, I'm out on the ledge here and ill understand these gory details.

btw, I have the socks4/http proxy configuration working via the command 
line (Ubuntu, fwiw) but now I would like to reap the benefit of 
disconnect/recovery that JSch affords.  Opinions?  Suggestions?

Thanks,

-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

Reply via email to