LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Remote logon to X server (https://www.linuxquestions.org/questions/linux-networking-3/remote-logon-to-x-server-31087/)

michaelegan 09-24-2002 06:27 AM

Remote logon to X server
 
For some weeks I've been logging on to the server on our intranet with the following command:

ssh -x -l username xxx.xxx.xxx.xxx

Yesterday I found that this returning an error message when trying to use any applications using the X window system:

cannot connect to X server

I've been looking around at a few articles on logging in remotely to the X server but cannot seem to find a way of resolving the problem.

I'll keep looking but any suggestions as to where best to look would be gratefully appreciated.

michaelegan 09-24-2002 06:33 AM

Additional Information
 
Since I last logged on to the remote server I have upgraded the distribution on the system I'm logging in from. This is now running SUSE 8.0. I'm fairly certain this is the only change that has occurred.

peter_robb 09-24-2002 06:44 AM

Just a thought,
check your '/etc/ssh/ssh_config' and see that ForwardX11 is still on.

Regards,
Peter

michaelegan 09-24-2002 08:01 AM

Peter,

Thanks for the suggestion.

I've checked this and ensure that it's set to 'yes' but still no joy :-(

michaelegan 09-24-2002 08:56 AM

Haven't a clue what I'm doing here but I seem to have achieved a modicum of success.

From the client I'm entering:

xhost +192.168.1.6 # this being the remote server address

This returns the following line:

192.168.1.6 being added to access control list

I can then log on to the remote system using:

ssh 192.168.1.6

After entering my password I then seem able to access individual X applications by entering the relevant application name. If only I knew what I was doing!

shahul75 09-24-2002 09:08 AM

Is that your inetd process running

michaelegan 09-24-2002 10:34 AM

There's a detailed article on this at www.xs4all.nl/~zweije/xauth.html I think Peter was probably right at the outset. I didn't have X forwarding properly set up.

I can now access individual X applications as I was doing initially. However, I can't set up the systems so as to obtain a graphical login on the local workstation. There was an article I came across some time ago at www.penguinmagazine.com (sadly not available) which suggested that the following command should work:

X -query remotesystemname

This starts up the X server, presumably on the remote system, but without presenting me with the graphical logon screen.

Any ideas?


All times are GMT -5. The time now is 05:20 PM.