Putty X11 proxy: wrong authorization protocol attemptedError

This error is shown due to missing xauth cookie in non-root user.

  • List down the cookies of the root user:
    xauth list
  • Add that cookie into the specified user:
    su – abc
    xauth add somehost.somedomain:10 MIT-MAGIC-COOKIE-1 4d22408a71a55b41ccd1657d377923ae

You may add xauth permanently into .bashrc or bash_profile file as well.

P.S. You may delete the older entries by using the following command:

  • xauth remove somehost.somedomain:10
  • xauth list | cut -f1 -d\ | xargs -i xauth remove {}

References: https://debian-administration.org/article/494/Getting_X11_forwarding_through_ssh_working_after_running_su http://dbadump.blogspot.sg/2011/02/clean-up-old-xauth-entries.html


About Ishtiaque

I am IBM Certified Infrastructure Systems Architect, Linux Foundation Certified System Administrator, Oracle Certified Programmer in Java and Web Component Developer, and TOGAF 9 certified with over 10 years of support and development experience in IBM middleware software and Java. Additionally, have a sound grip in databases and OpenStack administration. I hold the following certifications: IBM Certified Infrastructure Systems Architect Linux Foundation Certified System Administrator (LFCS) TOGAF 9 Certified Oracle Certified Expert, Java EE6 Web Component Developer Oracle Certified Professional – Java 6 Programmer ITIL v3 Foundation Certified IBM Certified Solution Architect – Cloud Computing Infrastructure V1 IBM Certified System Administrator – WebSphere Portal V8, V7, V6.1, V6 IBM Certified System Administrator – WebSphere Application Server V7, V6.1 IBM Certified System Administrator – AIX V7 IBM Certified System Administrator – WebSphere MQ V7 IBM Certified Deployment Professional – Business Process Manager Advanced V7.5 IBM Certified Solution Advisor – Cloud Computing Architecture V3 IBM Certified Solution Developer – WebSphere Portal V5.1
This entry was posted in Linux. Bookmark the permalink.