I've hardly used X11 forwarding so other people may know better, but
in the SSH protocol, X11 forwarding is handled by a specific request
("x11-req").
It is internally handled by the X11ForwardSupport class which itself
launches the xauth command on unix.
So on the SSH client side, you need to make sure you send the correct
request ... but I'm not sure why you'd have to implement your own
org.apache.sshd.server.Command.


On Mon, Nov 29, 2010 at 12:31, Jukka Syrjanen <[email protected]> wrote:
> Hello!
>
> I am working on a SSH proxy tool which forwards the SSH connection from
> user's machine to target machine via a proxy machine.  The tool runs in the
> proxy machine and launches org.apache.sshd.SshServer to listen for
> connections from the user's machine.
>
> user's machine <---> proxy machine <---> target machine
>
> I have written my own "shell" (implements org.apache.sshd.server.Command)
> that creates a ClientChannel towards the target machine, and sets its input
> and output streams to the streams from the user's machine.  The concept
> works fine, but I haven't found out a way how to make X11 to work between
> target machine and user's machine.  How could I connect the X11 channel from
> the target machine to that of the user's machine?
>
> BR. Jukka Syrjanen
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to