PuTTY X11 proxy: wrong authentication protocol attempted

PuTTY X11 proxy: wrong authentication protocol attempted

x11

I was able to finally figure out a solution. The problem seems to have been with the .Xauthority file (see below).

$ xclock
Error :- PuTTY X11 proxy: wrong authentication protocol attemptedError: Can't open display: localhost:10.0

Solutions.

1. Install xauth
sudo apt-get install xauth

2. Check xauth list
xauth list
xauth:  file /root/.Xauthority does not exist

3. Verify "X11Forwarding yes" enable or not 
sudo cat /etc/ssh/sshd_config | grep -i X11
X11Forwarding yes
X11DisplayOffset 10

4. if not enabled "X11Forwarding yes" then enable it.
sudo nano /etc/ssh/sshd_config
X11Forwarding yes

5. Copy Xauthority file from user to root folder.
sudo cp /home/user/.Xauthority   /root/

6. Check it's working now.
xauth list
ubuntuserver/unix:11  MIT-MAGIC-COOKIE-1  577159a43b6ecb02b2872a875f70297c
ubuntuserver/unix:10  MIT-MAGIC-COOKIE-1  a4343c811e7322743820799b016abbe1

7. Now it's working fine.
xclock
nedit


SHARE

Ibrar Ansari

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment