Linux: Executing ssh –X Gives error “/ usr/bin/xauth: error in locking authority file” for User
in Linux
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.
Tagged:
0