Link to home
Start Free TrialLog in
Avatar of epifanio67
epifanio67

asked on

RHL 4.5: how to configure RHL servers so remote users can display xclock, browsers, etc..

Hello Experts,

How to configure RHL servers so remote users can display xclock and browsers?

Must of our users use putty via a Window XP machine to connect to our server farm.
All servers are RHL 4.5
Some users have root access; some don't

Thank you

ASKER CERTIFIED SOLUTION
Avatar of jonmchan
jonmchan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of epifanio67
epifanio67

ASKER

thank you experts,

checked /etc/ssh/sshd_config on remote server, X11Forwarding is set to yes

I downloaded Xming server, launched it.

launched putty, and under X11, I made sure X11Forwarding was checked and Display was set to 0:0

connected to the remote server and ran xterm and xclock...

see results below..

Last login: Tue Oct 19 11:17:23 2010 from 192.168.0.100
/usr/bin/xauth:  creating new authority file /home/licMgr/.Xauthority
[licMgr@myremoteserver ~]$ xterm
Xlib: connection to "localhost:10.0" refused by server
Xlib: PuTTY X11 proxy: XDM-AUTHORIZATION-1 time stamp was too far out
xterm Xt error: Can't open display: localhost:10.0
[licMgr@myremoteserver ~]$ xclock
Xlib: connection to "localhost:10.0" refused by server
Xlib: PuTTY X11 proxy: XDM-AUTHORIZATION-1 time stamp was too far out
Error: Can't open display: localhost:10.0

Open in new window

Avatar of farzanj
Here is a simple way.

ssh -Y User@Server

Now you can use command line to say "firefox" or xclock etc.

For PuTTY you need to set ssh tunnel
Thank you....

Not sure I understand...

so, login to server using any SSH client

run the following:

ssh -Y user@server

?

how do I set up ssh tunnel?

thank you so much for all of your help....
I notice 2 things... Did you say the display is set to 0:0? How come it is trying to connect to 10.0? Also, how far is the clocks on your 2 systems from each other? The XDM-AUTHORIZATION-1 time stamp was too far out seems like a clock synchronization issue, but I never saw that error before.
thank you...

good question...

I make sure when I start a new putty session display is set to 0:0...
yet when I run
xterm
or
xclock
I get that error... no sure why....

the XDM-AUTHORIZATION-1 time stamp.... not sure what this is either....

well, the clocks should be different... these servers are EST time and we are MT time...

thx,

is the timezone set correctly on the server and clients?
thank you....

remote linux server:
[licMgr@myremoteserver ~]$ date
Tue Oct 19 17:49:14 MST 2010

local windows server 2003 machine using putty
US Mountain Standard Time Wed Oct 20 5:13 AM

may I ask why do they need to be the same to display xclock or xterm from a remote server?

thank you for all of your help...

Regards,

When you do ssh -Y from command line you don't have to setup the tunnel and you don't even have to setup DISPLAY variable which gets setup by itself.
thank you...

sorry for being so slow....

so, I login to the server using putty. Having X11Forwarding checked and Display set to 0:0

login as: licMgr
licMgr@192.168.0.104's password:
Last login: Tue Oct 19 17:57:19 2010 from 192.168.0.100

then, run the following command:

ssh -Y licMgr@192.168.0.104

[licMgr@myremoteserver /]$ ssh -Y licMgr@192.168.0.104
The authenticity of host '192.168.0.104 (192.168.0.104)' can't be established.
RSA key fingerprint is 31:ee:ca:18:13:4e:89:9e:64:07:e7:0c:8d:df:9d:35.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '192.168.0.104' (RSA) to the list of known hosts.
licMgr@192.168.0.104's password:
Last login: Tue Oct 19 17:59:25 2010 from 192.168.0.100
[licMgr@myremoteserver ~]$ xclock
X connection to localhost:11.0 broken (explicit kill or server shutdown).
[licMgr@myremoteserver ~]$ xterm
X connection to localhost:11.0 broken (explicit kill or server shutdown).

sorry again for being so slow to understand.

Can you tell me exactly how you want me to do this?

thx,
Regards

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thank you Experts.....

it worked...