Guillaume Nodet
Tue, 20 Oct 2009 05:34:25 -0700
I've attached a patch to the jira that tries to address both ways, but
I haven't done much testing ...

Hi Guillaume,

I just tried out Apache SSHD since I hope I can need it for my
application. I want to use the SSH protocol only for multiplexing. So I
need port forwarding and I was really rejoicing when stumbling upon this
posting ;-)

However, there still seems to be a problem with the implementation. I
think it's appropriate not to file it in as bug since, as you said, this
implementation is still experimental. What I did was the following: I set up a standard SSH server based on the SshServer-class from SSHD. I then used the OpenSSH-Client* with option -L to create a Forward-channel. As destination port I chose a port where there is an instance of squid listening. Now I set the port where the SSH Client is listening as proxy in Firefox. I expect now to be able to access web pages via the SSH forward tunnel and squid. In principle, this works, but when I open a page containing a lot of objects (pictures etc.), it loads some elements of the page, but not all. So I guess the server is running into some kind of deadlock here.

I used the OpenSSH Server as well to check if SSH is appropriate to handle several parallel requests at all (I think firefox executes 6 parallel requests in standard setup), and there it seems to work. However, I want to integrate the multiplexing into my (java) application, so it would be nice to be able to use SSHD libs...

Let me know if you need a more detailled description or any traces etc.

* I was not able to figure out how to use SSHD's client classes to establish port forwarding -- could you give me a short hook what to do? As far as I understood your remarks about the patch, it should be implemented on both client and server side...

Best regards & thank you
Lukas Niessen

Reply via email to