Saturday, April 28, 2012

Xlib: PuTTY X11 proxy: wrong authorisation protocol attempted

I log into myserver as user “myuser”, then “sudo su – soa”; I have X11 forwarding enable on Putty, and XMing running on my laptop.
I run
/opt/oracle/java/bin/jvisualvm
and I get:

Xlib: connection to "localhost:10.0" refused by server
Xlib: PuTTY X11 proxy: wrong authorisation protocol attempted

googling for the message I find:

http://froebe.net/blog/2008/11/14/getting-xlib-putty-x11-proxy-wrong-authentication-protocol-attempted-i-have-the-answer/

I try to
cat /etc/ssh/sshd_config
but I get
cat: /etc/ssh/sshd_config: Permission denied

I go back as myuser and I do
xauth list
myserver/unix:10 MIT-MAGIC-COOKIE-1 8ea792a81074c62518d53789faf9558d

then I “sudo su – soa” again and I do
xauth add myserver/unix:10 MIT-MAGIC-COOKIE-1 8ea792a81074c62518d53789faf9558d
xauth: creating new authority file /home/soa/.Xauthority

I run again
/opt/oracle/java/bin/jvisualvm

and it works! Thank you Jason!!!

Useful links:

For info on .Xauthority

No comments: