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 23:26:17 -0800
At 1:26 PM +1000 4/1/03, Aaron Harwood wrote:
The sshd_config file on my server does not have this set, yet I am able
to run X11 apps remotely.
another hmmm...
Yep.
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.
Well, the X11 forwarding is working, so I'm doing _something_ right (:-).
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.
Your terminology is confusing me, but then X11's terminology is rather
confusing, to begin with. So, I will define my terms:
As I understand it, an X11 "client" is a program that may run anywhere,
but its interactive I/O (e.g., pixels and mouse clicks) is routed to an
X11 "server" which (normally) runs on the machine in front of the user.
This being the case, it's less confusing (to me, at least) to speak of
the "desktop" machine and the "remote" machine than to try to use the
(overloaded) words "client" and "server".
That said, I'm not setting $DISPLAY on the remote machine; ssh does that
for me if $DISPLAY is defined on the desktop machine. I set $DISPLAY in
my .login file on the desktop machine, if it isn't set already:
if !($?DISPLAY) setenv DISPLAY ':0.0'
As I understand it, ssh and sshd conspire to turn this setting on my
desktop machine into a setting on the remote machine (pointing to a X11
proxy, again on the remote machine). Is any of this incorrect?
-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.