Is Agent forwarding the same as port forwarding? I am unsure if port forwarding 
will work as I want my proxy to be a middleman in the dialogue. 

I have just started working with setChannelFactories. I used the code you 
provided and the error now is:
The parameterized method 
<NamedFactory<Channel>>asList(NamedFactory<Channel>...) of type Arrays is not 
applicable for the arguments (ChannelSession.Factory, 
ChannelDirectTcpip.Factory)

I previously used a customized Command but I am pretty sure the Git client 
wants a dialogue with the server and the Command was closing the connection 
after the first exchange. The sshd would launch another command but that would 
restart the dialogue while the client was expecting the 2nd phase of the 
conversation.


On Mar 9, 2011, at 9:47 AM, Guillaume Nodet wrote:

> Interesting ...    Agent forwarding should work with SSHD if that can help.
> 
> What's the problem with the setChannelFactories ? More details would
> help to understand the real issue.
> 
> On Wed, Mar 9, 2011 at 16:41, Mark Robinson <[email protected]> wrote:
>> This may sound silly but I am trying to build an SSH proxy/passthrough 
>> between the a Git client and a Git server.
>> 
>> 
>> On Mar 9, 2011, at 9:36 AM, Guillaume Nodet wrote:
>> 
>>> The default setup using SshServer.setUpDefaultServer() configures the 
>>> following:
>>> 
>>>        sshd.setChannelFactories(Arrays.<NamedFactory<Channel>>asList(
>>>                new ChannelSession.Factory(),
>>>                new ChannelDirectTcpip.Factory()));
>>> 
>>> So it should work.  What kind of channels are you trying to configure ?
>>> 
>>> On Wed, Mar 9, 2011 at 16:27, Mark Robinson <[email protected]> wrote:
>>>> Hi,
>>>> Is there an example that shows how to set up a basic SSHD server to listen 
>>>> for SSH channels? I am hacking away at sshd.setChannelFactories with no 
>>>> luck.
>>>> Thanks!
>>> 
>>> 
>>> 
>>> --
>>> Cheers,
>>> Guillaume Nodet
>>> ------------------------
>>> Blog: http://gnodet.blogspot.com/
>>> ------------------------
>>> Open Source SOA
>>> http://fusesource.com
>> 
>> 
> 
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com

Reply via email to