Hi, You are right, it is running at TCP port 6000
But after setting the session X11Port to 6000, I still have the same problem. Error: Can't open display: localhost:10.0 I am currently running a GNU\Linux desktop Ubuntu 9.10. Regards, ----- Mail Original ----- De: "Atsuhiko Yamanaka" <[email protected]> À: [email protected] Cc: [email protected] Envoyé: Vendredi 2 Avril 2010 09h55:43 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [JSch-users] Problem with X11Forwarding 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
