File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes X11 forwarding using ssh tools Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "X11 forwarding using ssh tools" Watch "X11 forwarding using ssh tools" New topic

X11 forwarding using ssh tools

gupta kishor

Joined: Jul 13, 2010
Posts: 2
i am executing the commands in java using sshtools is working fine in windows machines .if i am trying to execute in linux machine.output is not displaying.
for that purpose i need to use X11 forwarding.but i am not able to write code for X11 forwarding.
please help me in this aspect.

Thanks in advance.
David Newton

Joined: Sep 29, 2008
Posts: 12617

I'm almost positive this has nothing to do with JSP, but I'm not sure where else to put it.
gupta kishor

Joined: Jul 13, 2010
Posts: 2
hi David,....
Thanks for your reply.but in "com.sshtools.j2ssh.forwarding.ForwardingClient" class having method called enableX11Forwarding and "SessionChannelClient" class having "requestX11Forwarding" method.
i am not able use these 2 methods in correct (syntax & sematics) way.

i need some sample code to use them.

Kisho gupta.
Pat Farrell

Joined: Aug 11, 2007
Posts: 4659

Can you use SSH with X-Windows formatting directly? From a shell, etc.?

ssh -X otherhost....

should support proper X-windows applications.

Often, the "display" is not setup properly on the Linux/Unix side
I agree. Here's the link:
subject: X11 forwarding using ssh tools
It's not a secret anymore!