Tuesday, January 19, 2016

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##

No comments:

Post a Comment