When X11 forwarding becomes a problem or if you prefer to be doing
remote X window processes
rather than swamping your local machine, try the following!
Step 1.
---------
On the local machine, find out the xauth cookies (or whatever)
that there are for the current session:
xauth list | grep machine_name.domain_name
Ex:
poggio % xauth list | grep poggio.sdsc.edu
poggio.sdsc.edu:0 MIT-MAGIC-COOKIE-1 b4b320646539b3ff84b89f3b91f20067
poggio.sdsc.edu:1 MIT-MAGIC-COOKIE-1 bc10a15779528e53a75de5ee7c5a8932
poggio.sdsc.edu:2 MIT-MAGIC-COOKIE-1 d6580b7ba23128a48312be0f4d58b3b8
poggio.sdsc.edu:3 MIT-MAGIC-COOKIE-1 5aedc5044d445cd90a0378e54ff14e1c
Step 2.
---------
On the remote machine, to which you have already done an ssh, do:
xauth add the_results_of_the_first_line_of_output_from_xauth_on_the_host_machine
(But don't put in double blanks, which the list command outputs!!)
Ex:
ds002 % xauth add poggio.sdsc.edu:0 MIT-MAGIC-COOKIE-1 b4b320646539b3ff84b89f3b91f20067
1356-364 xauth: creating new authority file /paci/sdsc/leesa/.Xauthority
Step 3.
--------
Do "echo $DISPLAY" on the host machine.
Then set the DISPLAY variable on the remote machine to this value.
Ex:
poggio % echo $DISPLAY
poggio.sdsc.edu:0.0
ds002 % setenv DISPLAY poggio.sdsc.edu:0.0
Step 4.
-------
Do any Xwindows application and see it show up on your host machine!!!