Re: X11 article, for review (take 2)
Re: X11 article, for review (take 2)
- Subject: Re: X11 article, for review (take 2)
- From: Rich Morin <email@hidden>
- Date: Mon, 31 Mar 2003 18:28:02 -0800
At 12:07 PM +1000 4/1/03, Aaron Harwood wrote:
Changing the /etc/ssh_config allows the ssh client to receive forwarded
X11 connections from the sshd server that it connects to.
If ssh_config is not changed to allow this then the -X option has no effect.
This is not consistent with what I'm seeing. If I use "ssh cfcl", I am
not able to start up (say) an xclock; if I use "ssh -X cfcl", I am. The
/etc/ssh_config on my OSX box is vanilla; no options are turned on.
* How does the X11Forwarding flag (in /etc/sshd_config) affect the
situation? It seems like using the "-X" flag is letting my FreeBSD
box display apps on my OSX machine's X11 server. How would this be
different if X11Forwarding was enabled on the remote machine?
The sshd_config option allows the sshd server to provide X11 forwarded
connections. Again X11Forwarding must be set to yes
for the -X option (given at the ssh client) to have effect when
connecting to the sshd server (which will allocate a display number
to the connection...you can see with echo $DISPLAY).
The sshd_config file on my server does not have this set, yet I am able
to run X11 apps remotely.
Both the ssh_config (on the client) and the sshd_config (on the server)
must have the options set to make X11 forwarding work. You can use
the kill -HUP pid (where pid is the process id of the server) to reset
the server after changing the options.
Of course you can just set the $DISPLAY variable and use xauth but
this method is less convenient and less secure.
Is this perhaps what I'm doing now? I'm setting DISPLAY to ':0.0' and
using "ssh -X". How would this be different if the sshd_config file
had X11 Forwarding turned on?
-r
--
email: email@hidden; phone: +1 650-873-7841
http://www.cfcl.com/rdm - my home page, resume, etc.
http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.