Forwarding SSH X-11 and magic cookies

On environments where Oracle or Grid accounts are access by sudo.
Then SSH X-11 forwarding and magic cookies are lost.

Here a simple trick that can be used tho solve this.

First login with your account and then execute:
xauth list


The statement list all the SSH X-11 and magix cookies.
Alternative is to use the follwong statement:
xauth list ${DISPLAY#localhost}

This will filter the information with your information.  
Copy the whole output of the statement above, and sudo to Oracle or Grid user.
Execute the following command:
xauth add ##string that you have copied from the above output##

Popular posts from this blog

OracleRemExecService available Windows only

Dynamic listener registration (instance registration) - Connections via the Listener to the Database [TNS-12526 - TNS-12527 - TNS-12528 ]

Implementation of a GoldenGate Replicate Hub: GoldenGate Remote Capture and Deliver Goldengate processes