Remote X over ssh
Shawn Tayler
stayler
Wed Jan 5 08:40:40 PST 2005
On Tue, 4 Jan 2005 21:55:24 -0800 Bill Campbell <linux-sxs at celestial.com>
exclaimed:
> On Tue, Jan 04, 2005, Shawn Tayler wrote:
> >On Tue, 04 Jan 2005 20:16:34 -0800 Ken Moffat <kmoffat at drizzle.com>
> >exclaimed:
> >
> >> Shawn Tayler wrote:
> >>
> >> >Ok Guys,
> >> >
> >> >All this X discussion has brought to mind an issue that I had put on
> >a> >back burner. I am trying to get a remotre X session on a PC over a
> >LAN.> > I am
> >> >using ssh to initially connect. I have X Forwarding enabled in the
> >> >sshdconfig file. What are the other steps I need to accomplish? the
> >> >xhost+ and export DISPLAY 0.0:?
> >> >
> >> >What would be the difference if I wanted to say have my local X
> >session> >on cntl-alt-F7 anf the remote session appear on cntl-alt-F8?
> >Is thios> >possible?
> >> >
> ...
> >> I enable forwarding in sshd_config using
> >>
> >> X11Forwarding yes
> >>
> >> and the call I use is
> >>
> >> ssh -X servername
> >>
> >> this runs the program on the server, but displays it on the client.
> >> Maybe not exactly what you want, but it's easy.
> >>
> >
> >This just gives me a text mode ssh session.
>
> Do you have a DISPLAY environment variable set in that ssh
> session? If so, you should be able to run X clients from that
> session (e.g. run ``xeyes'').
>
> NOTE: Current versions of openssh require setting
> ``ForwardX11Trusted yes'' in the ssh_config file.
>
Yes
I tried xeyes. I get the "Can't open display :0.0" error. What value
should I set $DISPLAY to on the remote machine?
I tried startx and kdeinit says it can't start either.
Shawn
More information about the Linux-users
mailing list