Paul Ebermann schrieb: > Thus, my idea was to implement the Proxy interface to create connections > directly via a > ChannelDirectTCPIP. > > The code follows below, but it does not work. From the log output, it comes > to the end of > the Proxy's connect method, but then does not finish the connect method of > the Session.
Here is my example: https://github.com/ePaul/jsch-documentation/blob/better-examples/examples/ViaSSH.java (You'll also need the SwingDialogUserInfo.java in the same directory.) It sometimes works, usually when using localhost for both proxy and target hosts, and selecting at least the second one via dialog instead of command line. (I'm on SusE linux, and the remote server identifies itself as SSH-2.0-OpenSSH_5.4.) If using any other host name for one of both, It usually hangs in the connect method, as in the stacktrace of my last message. When using a debugger it works more often. Thus this seems timing-related - I tried adding sleeps in various places, but this did not really help. Any ideas, or did I hit a bug here? Paul ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users