Getting X’s windows from remote hosts on Cygwin/X
As previous, I think we can get remote X’s windows simply via ‘ssh -X’ or ‘ssh -Y’ with using ‘DISPLAY=localhost:xx.0’. But I cannot do so now.
For this problem, I’ve first searched ‘xhost’ command, but cygwin returns ‘xhost: Command not found’. So, I’ve changed to other way with using pure xauth method.
On cygwin terminal, you’ll get the followings with xauth command.
% xauth list
hostname:0 MIT-MAGIC-COOKIE-1 091fcf131a5c647869f2f4d5bf45e26c
hostname/unix:0 MIT-MAGIC-COOKIE-1 2554c8810c6218f08fec1f1e63599d09
10.0.0.25:0 MIT-MAGIC-COOKIE-1 2554c8810c6218f08fec1f1e63599d09
The last hex value is the COOKIE of X, and might vary on each session. After getting this cookie informations, you should type the following command on the remote host.
% xauth add hostname:0 MIT-MAGIC-COOKIE-1 091fcf131a5c647869f2f4d5bf45e26c
After this, you can get X’s windows from remote hosts to your cygwin X.