Two situation :
1) While using ssh
2) While using sudo su
Error encounter :
Xlib: PuTTY X11 proxy: wrong authentication protocol attempted
1) Using ssh : use ssh with -X option
vUSER1@rhel1234orc001a:grid]$ ssh -X oracle@rhel1234orc001a
[oracle@rhel1234orc001a:~]$ xterm
[oracle@rhel1234orc001a:~]$
2) Using sudo su : use temporarily transfer the authorization to the other account using xauth add
vUSER1@rhel1234orc001a:grid]$ xauth
Using authority file /home/vUSER1/.Xauthority
xauth> list
rhel1234orc001a.mysite.local/unix:10 MIT-MAGIC-COOKIE-1 e7b1c3caf33b411c00a6cc4f243fe97c
xauth> exit
[vUSER1@rhel1234orc001a:grid]$ sudo su - oracle
[oracle@rhel1234orc001a:~]$ xauth add rhel1234orc001a.mysite.local/unix:10 MIT-MAGIC-COOKIE-1 e7b1c3caf33b411c00a6cc4f243fe97c
[oracle@rhel1234orc001a:~]$ xterm
[oracle@rhel1234orc001a:~]$
Hope that helps...
1) While using ssh
2) While using sudo su
Error encounter :
Xlib: PuTTY X11 proxy: wrong authentication protocol attempted
1) Using ssh : use ssh with -X option
vUSER1@rhel1234orc001a:grid]$ ssh -X oracle@rhel1234orc001a
[oracle@rhel1234orc001a:~]$ xterm
[oracle@rhel1234orc001a:~]$
2) Using sudo su : use temporarily transfer the authorization to the other account using xauth add
vUSER1@rhel1234orc001a:grid]$ xauth
Using authority file /home/vUSER1/.Xauthority
xauth> list
rhel1234orc001a.mysite.local/unix:10 MIT-MAGIC-COOKIE-1 e7b1c3caf33b411c00a6cc4f243fe97c
xauth> exit
[vUSER1@rhel1234orc001a:grid]$ sudo su - oracle
[oracle@rhel1234orc001a:~]$ xauth add rhel1234orc001a.mysite.local/unix:10 MIT-MAGIC-COOKIE-1 e7b1c3caf33b411c00a6cc4f243fe97c
[oracle@rhel1234orc001a:~]$ xterm
[oracle@rhel1234orc001a:~]$
Hope that helps...