Help Center/ Elastic Cloud Server/ Troubleshooting/ Remote Login/ Remote Login Errors on Linux/ What Do I Do If "/usr/bin/xauth: timeout in locking authority file /home/user/.Xauthority" Is Reported When I SSH Into a Linux ECS?
Updated on 2026-07-07 GMT+08:00

What Do I Do If "/usr/bin/xauth: timeout in locking authority file /home/user/.Xauthority" Is Reported When I SSH Into a Linux ECS?

Symptom

When you log in to a Linux ECS using SSH, the error message "/usr/bin/xauth: timeout in locking authority file /home/user/.Xauthority" is displayed, as shown in the following figure.

Possible Causes

The owner group and owner of the user's home directory are incorrectly configured when the user is created.

Solution

  1. Log in to the ECS.
  2. Run the following command to grant all permissions to the user's home directory:

    chown -R devops:devops /home/devops

  3. Restart the ECS.

    reboot