Hi,

   +-From: [email protected] ------------------------
   |_Date: Fri, 2 Apr 2010 09:38:54 +0200 (CEST) __
   |
   |I am currently using Jsch to run a simple xclock through 
   |a SSH connection (localhost or remote machine).
   |(I need to run more complex application, but this is a simple example).
   |I wrote the following program but I got a "Can't open display: 
   |localhost:10.0" error.
   |Typing the same command within an xterm allows me to show the xclock 
   |displaying.
   |Can you tell me what is wrong ? I expect to see an xclock running.
   ...

   |        Session session = jsch.getSession(username, host, port);
   |        session.setX11Host("localhost");
   |        session.setX11Port(6010);

Is really your local X server running at TCP port 6010?
Usually, it should be 6000.


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
    +1-415-578-3454
Skype callto://jcraft/
Twitter: @ymnk

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to