Win a copy of Design for the Mind this week in the Design 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic