I have been trying to get X11 port forwarding to work from my laptop. I can't figure out why it won't work.
I get this message when I try to run xterm:
X11 connection rejected because of wrong authentication.
xterm Xt error: Can't open display: localhost:10.0
I don't know if this is related or not, but when I login, I get this message:
/usr/bin/xauth: timeout in locking authority file /home/sphillips/.Xauthority
I have wondered if the problem is that my local user on my laptop is skp and the username on this server is sphillips. I have been able to get X11 forwarding to work with my other computers that use the same skp login.
Also, the X11 port forwarding works from a Windows machine using Xming and Putty to the same server. I have to manually configure the DISPLAY variable to the IP address and display 0.0, but it works.
I have run an xhost + on my machine with the attempt to try to bypass any security issues. That still didn't work.
On the server, I check the configuration:
$ sudo grep X11Forwarding /etc/ssh/sshd_config
#X11Forwarding no
X11Forwarding yes
# X11Forwarding no
And on my machine as well:
$ sudo grep X11Forwarding /etc/ssh/sshd_config
[sudo] password for skp:
#X11Forwarding no
X11Forwarding yes
# X11Forwarding no
My server is RedHat Enterprise Linux 6 and my laptop is Fedora 15.
Can anyone give me any thoughts on things to try to get SSH X11 forwarding to work from my laptop?