xauth
Edit and display the authorization information used in connecting to the X server. tldr-pages
On Linux
Linux
Start interactive mode with a specific authority file (defaults to ~/.Xauthority)
xauth -f path/to/fileIdentifyDisplay information about the authority file
xauth infoIdentifyDisplay authorization entries for all the displays
xauth listIdentifyAdd an authorization for a specific display
xauth add display_name protocol_name keyIdentifyRemove the authorization for a specific display
xauth remove display_nameIdentifyPrint the authorization entry for the current display to stdout
xauth extract - $DISPLAYIdentifyMerge the authorization entries from a specific file into the authorization database
cat path/to/file | xauth merge -IdentifyDisplay help
xauth --helpIdentify