You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Linux: Executing ssh –X Gives error “/ usr/bin/xauth: error in locking authority file” for User

Applies to:  

Oracle Cloud Infrastructure

Linux x86-64


Symptoms

Connecting with ssh -X to a destination server results in a successful login but an error is displayed:

/usr/bin/xauth: error in locking authority file /home/<user>/.Xauthority.


Cause

This is caused by option -X being used which enables X11 forwarding via ssh.

As a part of X11 forwarding, an .Xauthority file need to be created and locked for the logged in user in the user’s home directory. 

If the file cannot be created or locked, then this error will be displayed


Solution

See the notice at the end of this document.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!