Re: X11 article, for review (take 2)
Re: X11 article, for review (take 2)
- Subject: Re: X11 article, for review (take 2)
- From: Aaron Harwood <email@hidden>
- Date: Tue, 1 Apr 2003 12:07:48 +1000
On Tuesday, April 1, 2003, at 11:32 AM, Rich Morin wrote:
Can someone explain the ins and outs of X11 Forwarding under ssh?
* Is setting "ForwardX11 yes" in /etc/ssh_config equivalent to adding
the "-X" flag to every ssh command? From my tests, it seems to be.
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.
* 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).
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.
--Aaron
_______________________________________________
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.