“Xlib: PuTTY X11 proxy: wrong authentication protocol attempted” solution!

After wasting a couple hours I’ve found someone who had the solution, which I found through this guy’s blog.

In my case, what I had was a chroot jail inside a server (which I also had full control), here are the steps:


  1. Connect to the server
  2. Execute:
    # xauth list
    devserver/unix:10  MIT-MAGIC-COOKIE-1  f44098e4ee6687e163c152a72c7dacbd

    and copy the auth data;

  3. Enter the chroot jail, and execute
    # xauth add devserver/unix:10  MIT-MAGIC-COOKIE-1  f44098e4ee6687e163c152a72c7dacbd
  4. And thats it, It should be working now.


Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.