run xclock from local solaris to remote solaris

Hello - I am trying to connect to a remote solaris box from a solaris box i have locally present with me using 'ssh login@IP' ... Its connecting fine but... when I run xclock - it says 'Can't open display'

Whereas, IF I connect to same remote solaris IP from my windows desktop locally via putty and running xming. xclock works fine.

Please let me know how to run xclock as I can not have xming on local solaris certainly.

Thank you!

Check that the DISPLAY environmental variable on the remote system is set correctly to your local system and run xhost on your local system to enable/permit the remote system to display xclock on your local system.

Try using the ssh "-X" option to do X forwarding.

ssh -X remote xclock

When I connect from putty i.e. local windows to remote solaris - DISPLAY=localhost:10.0 is already set. When I connect from local solaris to remote solaris via ssh oracle@IP - DISPLAY isnt set. Then I gave export DISPLAY=localhost:10.0

No results. I tried #ssh -X remote xclock ... Nothing is coming and no errors.

Check in the remote server's

/etc/ssh/sshd_config

to see if X forwarding has been disabled.

I see that X11 forwarding is set to 'yes' what else could be the cause?

use "-v" to see what SSH thinks it's doing....

Can you please let me know the command with what I have to supply '-v'

We're still using ssh aren't we?

ssh -v -X remote-box

then when you get on the other side...

echo $DISPLAY

On the system console locally, use DISPLAY=`hostname`:0.0 instead of localhost:0.0