I'm sshing from a ubuntu 14.04.1 machine into a ubuntu 14.04.3 remote machine with -X. Usually the X11 forwarding just works. But it does't on this machine. Error message:
$ eog
** (eog:7733): WARNING **: Could not open X display
$ echo $DISPLAY
localhost:12.0
However, it works when I add sudo:
$ sudo eog
More information about the remote machine:
Kernel: 3.19.0-25-generic
SSH client settings /etc/ssh/ssh_config:
ForwardX11 yes
ForwardX11Trusted yes
SSH server settings /etc/ssh/sshd_config:
X11Forwarding yes
Does anyone know what could be the cause? Or should I be looking into the config on my local machine instead?(which also has X11 enabled)