On Thu, 29 Oct 1998, James Yeung wrote:
> Hi, I'm trying to be able to run my Xwindows programs remotely from the
> university UNIX(Sun) machines...is this possible? How would I do this? Would
> there be any compatibility problems? While on campus, I changed my export
> DISPLAY to "export DISPLAY=<my server>:0.0" Then when I tried to run any
> Xwindows program like "xv", I got:
Assuming you have your DISPLAY variable correctly set, ssh will setup
everything automagically. The connection will be encrypted and your
current (or a new one) mit magic cookie will be used to by clients on the
remote machine to connect to a DISPLAY (i.e. :10) that will forward to
your local DISPLAY (i.e. - :0)
of course sshd has to be running at the remote end.
more info on ssh is at http://www.ssh.fi/
> Xlib: connection to "myserver.utexas.edu:0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> xv: Can't open display
Fortunately the connection is refused or anyone could connect to your
Xserver, record your keystrokes and probably do other bad stuff.
> How do I authorize my computer? And would that be the only problem?
There are several ways to do it, but some are more insecure
than others.
1. ssh
man ssh
2. MIT MAGIC COOKIES (~/.Xauthority)
man xauth
3. .rhosts
man rsh
ssh can be used instead
4. xhost +hostname
if there are other users on hostname they will all be able to connect to
your display
perhaps there are some other methods I've omitted
-Peter Frouman | finger [EMAIL PROTECTED] for PGP public key
Zippy says:
Did YOU find a DIGITAL WATCH in YOUR box of VELVEETA?
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]