This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

X11 forwarding using ssh tools

 
gupta kishor
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm almost positive this has nothing to do with JSP, but I'm not sure where else to put it.
 
gupta kishor
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!