setup X connection

I am running on a linux in my company's main site.
Sometimes I need to access to a server in another site and
run some x-applications. I tried to SSH to that server, but
had difficulty setting up the correct DISPLAY variable.
I used "who" to list the users and got something like:
-------------------------------------------------------------------------------------------------
john pts/2 Dec 15 15:45 (ip-66-22-113-92.dsl.verizon.net)

I don't think setting DISPLAY to the p-66-22-113-92.dsl.verizon.net:0.0
would work. If VPN service is not available now, how can I solve it?

Check the man page for ssh - you can use the -X option but note the security risks. This is only a suggestion since I'm not sure if you are physically on the console of the linux server or you are connecting to the linux server and then ssh'ing to the 'other' server. You have to get your X session back to the system you are physically on.

That works. Thank you a lot.