This week's book / license giveaways are in the JDBC and Relational Databases and Java in General forums.
We're giving away four copies each of PostGIS in Action and Java Advanced Topics Training and have the authors on-line!
See this thread and this one for details.
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
Author

X11 forwarding using ssh tools

gupta kishor
Greenhorn

Joined: Jul 13, 2010
Posts: 2
Hi,
i am executing the commands in java using sshtools APIs.it 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.
Kishor.
David Newton
Author
Rancher

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
Greenhorn

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.

Regards,
Kisho gupta.
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4659
    
    5

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: http://aspose.com/file-tools
 
subject: X11 forwarding using ssh tools