I have 2 virtual machines, one running CentOS 7 and the other one CentOS 6.5. I'd like to run an application on the CentOS 6.5 VM but display it on the 7 one.
I cannot use
ssh -X (or
-Y), I have to use
xeyes -display host:displaynumber, but I can't manage to make it work for now.
What I'm trying, from the 6.5VM, is:
xeyes -display 192.168.1.20:0
I get the following:
No protocol specified Error: Can't open display: 192.168.1.20:0
However, when I
ssh -X 192.168.1.20 (from the 6.5VM), then
xeyes, it does work correctly, (and by correctly I mean that it successfully connects to the 7VM and the xeyes app is displayed on the 6.5VM) so I don't think it is an issue with the hostname. Doing the other way around (meaning, I ssh from the 7VM to the 6.5VM to launch xeyes) works correctly too.
echo $DISPLAY gives
:0 on both machines. I did add
X11Forwarding yes to /etc/ssh/sshd_config. (and
AllowTcpForwarding yes too)
Feel free to ask for more information if I forgot something. I'm a bit of a newb so I may have forgotten simple details.
Thanks in advance for any answer!