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 13:26:31 +1000
On Tuesday, April 1, 2003, at 12:28 PM, Rich Morin wrote:
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.
hmmm...you don't have
ForwardX11 yes
in your ssh_config, so you must explicitly say -X option on the ssh.
What I said earlier is actually a misnomer, because the -X option
will have effect, but so long that
X11Forwarding yes
is in the sshd_config on the remote machine.
* 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.
another hmmm...
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?
If you use X11 forwarding via ssh then you *must not* set the DISPLAY
variable in your .tcshrc or anywhere else, the sshd will set the DISPLAY
variable for you. If you set it then you override the setting that
was given by sshd and the X11 forwarding will not work.
If these things confuse you, then you'd better write more explicitly
your
problem with reference to the "local" (client) machine and the "remote"
(server)
machine.
--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.