Port forwarding has been mentioned several times already (same for sftp support btw), but afaik noone has started working on that. You'd be welcome to contribute that. I'd be willing to help, but I don't have much time in the coming weeks, but if you have any question, don't hesitate to ask.
If you checkout the sshd trunk, port forwarding is described in section 7 of sshd-core/src/docs/rfc4254.txt document. This document says that port forwarding is initiated by a SSH_MSG_GLOBAL_REQUEST message to the server. This means the related code must be added in ServerSession#globalRequest() method. The two new channels need to be created, one for forwarded tcp and another one for direct tcp, which i suppose will be handled by two new classes inheriting from AbstractServerChannel. Having just had a first look at the spec, it does not seem too difficult, so I hope you'll take a peek at it. And again, i'd be happy to answer any question you may have. On Fri, Oct 16, 2009 at 14:22, Bernd Rücker <[email protected]> wrote: > Hey guys. > > > > I currently start to use the Apache Mina SSHD Server for a project, but we > need SSH Port forwarding. As far as I understood the mailinglist and JIRA > this is not yet implemented. Are there any plans to implement this? Is > there any timeline for this (since the jira issues are almost a year old > already)? Anybody maybe done this already? > > > > Or is there another easy solution? Client would be the MINA ssh client or > JSch (or maybe even something else), and I need just to build a tunnel for > a DB connection, but the server should be embedded in our Java program. > > > > Is there any possibility to accelerate that development by a donation > maybe? Since I am pretty lost in the network programming it would be much > better to have it handled by people knowing what they do ;-) > > > > Thanks a lot and cheers > > Bernd > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com
