I want to ssh to remote servers, both running CentOS with X11Forwarding enabled.
However the X application cannot run properly on one of them - on host B it works fine. But on host A I get the error "couldn't connect to display", each time I launch X application.
After checking the DISPLAY environment variable on host A which I think is related to X window, I found its value localhost:10.0. Following the tips here, I change DISPLAY=0:10.0 and it works. However, DISPLAY on host B is still localhost:10.0 and works fine.
My question is, what does the value in DISPLAY represent? What is the difference between localhost:10.0 and 0:10.0?
It is said that localhost identifies a host name. Then which host does it identify, the server(host A/B) on which my X application is running or my local client where I want the X window to display?
Any hints or pointers to documentation would be appreciated.