Ssh – What are .serverauth.##### files in the home directory

fileshomesshx11

The files are .serverauth.##### where ##### is a 5-digit number.
I have a handful of these files in my home directory with a broad range of creation dates spanning a couple of years.

What are these files from? Is it safe to delete them?

Best Answer

You can remove all of them except the newest one. They are created by the startx script. If X does not shut down gracefully, that files is not removed and stays forever (see that bug).

You can change the line in the /usr/bin/startx file, to a more handy way:

Search for xserverauthfile= in the script and replace the line with:

xserverauthfile=$XAUTHORITY
Related Question