I recently installed Debian 8 on my workstation , which before ran Ubuntu 15.04 , but after Debian 8 came into my life, I have not succeeded in running ssh with X11forwarding.case is:I have a server running Ubuntu 14.04, and when I login to that server from my laptop ( also Ubuntu 14.04 ), I have no problem getting X11forwarding working, but if I try to login from my Debian8 workstation, I will get this error when trying to run xterm (output is from ssh -X serverip )connect /tmp/.X11-unix/X0: No such file or directoryxterm: Xt error: Can't open display: localhost:12.0A ls shows that the file exists$ ls -la /tmp/.X11-unix/X0srwxrwxrwx 1 root root 0 Aug 18 17:53 /tmp/.X11-unix/X0In the server's sshd_config i have the following options enabledX11Forwarding yesX11UseLocalhost yes ( i have tried both yes and no here )X11DisplayOffset 12and in my ssh_config on my Debian8, I have the following lines enabledHost *ForwardAgent yesForwardX11 yesForwardX11Trusted yesAs I see it with a 'ssh -vv -X serverip' all x11 debug message are the same both on my working laptop, and nonworking are the same, and ~/.Xauthority get created on the server when I loginThe following environment variables are set when I log into the server from my laptop ( some variables are omitted )SSH_CLIENT=1.1.1.1 59061 22SSH_TTY=/dev/pts/1SSH_AUTH_SOCK=/tmp/ssh-qHuaV5m5QO/agent.32572LANGUAGE=en_US:enLOGNAME=xxxSSH_CONNECTION=1.1.1.1 59061 2.2.2.2 22DISPLAY=localhost:12.0the following environment variables are set when I log into the server from my debian8 workstation (some variables are omitted)SSH_CLIENT=3.3.3.3 59148 22SSH_TTY=/dev/pts/1SSH_AUTH_SOCK=/tmp/ssh-fwG6aBA4he/agent.32763SSH_CONNECTION=3.3.3.3 59148 2.2.2.2 22DISPLAY=localhost:12.0All tests are done with ssh -X serverip, and firewall is disabled.Note: if I login to the server from my laptop via the Debian workstation, X11forwarding works finePlease can any one help me? I have tried to google this problem for 2 days now, without any solution yet. So I really hope someone here can help me out.
ssh X11forwarding not working , but only on debian8
linux;debian;ssh