[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problems with accessing X apps with ssh



On Wednesday 28 March 2007 21:48, Andrei Popescu wrote:
> Nigel Henry <cave.dnb@tiscali.fr> wrote:
> > I'm having a problem accessing X apps from FC2 to Debian Etch using
> > ssh. I can ssh in to Etch ok, and can display stuff like lsmod on
> > FC2's CLI, but if I try to run Gedit, Kwrite, or any other Xapp it's
> > a no go. I tried in /etc/ssh_config on Etch uncommenting the line.
> > ForwardX11Trusted yes
> >
> > This though hasn't resolved the problem.
> >
> > Any suggestions?
>
> I think you need to tinker with /etc/ssh/sshd_config, especially the
> option X11Forwarding. IIUC you need to alter ssh_config on the client
> side, not server side.
>
> If this doesn't work please also provide error messages from when you
> try to start X apps, ssh_config on client and sshd_config on server
> side.
>
> Regards,
> Andrei

I have to admit that I am confused when discussing clients, and servers with 
working with SSH.

Anyway here goes. I can ssh from Etch (192.168.0.8) to either FC1 
(192.168.0.228), or FC2 (192.168.0.230), and get stuff from Etch displayed on 
the CLI on FC1, and 2, and also get X apps, gedit for example displayed.

The other way from FC1, or FC2, ssh'ing to debian, I can can ssh into Debian 
(192.168.0.8), and view anything I want on the CLI, but have problems with 
opening X apps.

In /etc/ssh/ssh_config I have tried changing "ForwardX11" no to yes, and have 
also tried changing "ForwardX11Trusted" from no to yes, and obviously 
uncommenting them, but still no success. 

These are the sort of complaints I get when trying to access Etch from FC1, or 
FC2. SSH'ing into Etch isn't the problem. The CLI stuff works ok, it's just 
the X apps that complain. See below.

Last login: Thu Mar 29 22:23:34 2007 from 192.168.0.228
djmons@debian:~$ gedit
cannot open display: (null)
Run 'gedit --help' to see a full list of available command line options.
djmons@debian:~$ kwrite
kwrite: cannot connect to X server
djmons@debian:~$ cheesetracker
cheesetracker: cannot connect to X server
djmons@debian:~$

This is all I get, and doesn't say anything.

So this is the way it stands at the moment. I can ssh from Etch into FC1, or 
FC2, access the CLI on Etch, and also open Xapps.

Going the other way from FC1, or FC2 to Etch. I can access the CLI on Etch ok, 
but cannot access any Xapps.

All a bit puzzling.

Nigel.



Reply to: