Remote X over ssh

Matthew Carpenter matt
Wed Jan 5 17:37:49 PST 2005


This means that you did not have a successful X tunnel.

Try "ssh -X user at host".  That sets the client to attempt it.  If that doesn't 
work, the server is not configured to allow X forwarding.

To set up the client: /etc/ssh/ssh_config
To set up the server: /etc/ssh/sshd_config

On Wednesday 05 January 2005 08:40 am, Shawn Tayler wrote:
> 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
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
>
> Need to chat further on this subject? Check out #linux-users on
> irc.linux-sxs.org !



More information about the Linux-users mailing list