Remote X over ssh

Bill Campbell linux-sxs
Wed Jan 5 00:55:41 PST 2005


On Tue, Jan 04, 2005, Shawn Tayler wrote:
>On Tue, 04 Jan 2005 20:16:34 -0800 Ken Moffat <kmoffat at drizzle.com>
>exclaimed:
>
>> Shawn Tayler wrote:
>> 
>> >Ok Guys,
>> >
>> >All this X discussion has brought to mind an issue that I had put on a
>> >back burner.  I am trying to get a remotre X session on a PC over a LAN.
>> > I am
>> >using ssh to initially connect.  I have X Forwarding enabled in the
>> >sshdconfig file.  What are the other steps I need to accomplish?  the
>> >xhost+ and export DISPLAY 0.0:?  
>> >
>> >What would be the difference if I wanted to say have my local X session
>> >on cntl-alt-F7 anf the remote session appear on cntl-alt-F8?  Is thios
>> >possible?
>> >
...
>> I enable forwarding in sshd_config using
>> 
>> X11Forwarding yes
>> 
>> and the call I use is
>> 
>> ssh -X servername
>> 
>> this runs the program on the server, but displays it on the client. 
>> Maybe not exactly what you want, but it's easy.
>> 
>
>This just gives me a text mode ssh session.  

Do you have a DISPLAY environment variable set in that ssh
session?  If so, you should be able to run X clients from that
session (e.g. run ``xeyes'').

NOTE:  Current versions of openssh require setting
``ForwardX11Trusted yes'' in the ssh_config file.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

The cry has been that when war is declared, all opposition should
therefore be hushed.  A sentiment more unworthy of a free country could
hardly be propagated.  If the doctrine be admitted, rulers have only to
declare war and they are screened at once from scrutiny ...  In war,
then, as in peace, assert the freedom of speech and of the press.
Cling to this as the bulwark of all our rights and privileges.
		-- William Ellery Channing


More information about the Linux-users mailing list