[H-GEN] remote X
Jason Henry Parker
jasonp at uq.net.au
Mon Jan 3 22:51:04 EST 2000
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Please observe the list's charter. ]
On Tue, 4 Jan 2000, Raymond Smith wrote:
> On Tue, 4 Jan 2000 staeci at yahoo.com wrote:
> > [staeci at shivan staeci]$ xterm &
> > [1] 1939
> > [staeci at shivan staeci]$ Xlib: connection to "serra:0.0" refused by server
> > Xlib: Client is not authorized to connect to Server
> > xterm Xt error: Can't open display: serra:0.0
>
> The X-server on serra needs to be told to accept X connections from
> clients on shivan. To do this you use the xhost command,
> specifically, 'xhost +shivan'. man xhost for more information.
And after you've learned the wrong way to do it (this will let
*anyone* on shivan bring up windows, monitor keystrokes, and insert
keystrokes on serra), learn one of the two right ways:
staeci at serra $ ssh -f staeci at shiva xeyes --option=foo --otheroption=bar
OR
use xauth (you'll have to read the manpage; if you work out how to use
it, tell me!).
IIRC, both of these methods use crypto to make sure you and *only* you
can have access to the X server you're using, and learning ssh is a
Good Thing, always.
Xhost is a good way to shoot yourself in the foot and little else.
jason
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.
More information about the General
mailing list