Re: Remote X login
On Mon, Oct 31, 2005 at 03:00:26PM -0000, marc wrote:
> Used on the client
^^^^^^
Beware confusing client and server when discussing X. In X parlance, the
server is your desktop and the machine with the applications on is the
client. This is because the X server is running on your desktop (or
laptop, or whatever).
> # ssh -X user@host
> ssh logs in, as it does without -X.
>
> If I then try to run, say, kwrite, I receive the error:
> # kwrite: cannot connect to X server
> which is the same as without the -X option.
That suggests that $DISPLAY is not set - try
ssh -X user@host 'echo $DISPLAY'
If you don't get something like 'localhost:10.0' back, then there's a
problem tunnelling X . Add a -v argument to ssh, and try again:
ssh -v -X user@host 'echo $DISPLAY'
You'll get a lot of output. Normally it's something like the xauth
binary not being available on the remote computer (install xbase-clients
in that case)
> Nevertheless, while this function is certainly useful - if my
> understanding is correct that it allows you to use remote named
> X-based progs - I still have the requirement of loggin on to a remote
> machine via XDM.
Yeah, I'm curious about the best approach for that sort-of stuff, too.
--
Jon Dowland
http://jon.dowland.name/
Reply to: