For this example, hostname is anyhost and the file is xauth.info:
myhost% /usr/openwin/bin/xauth nextract - anyhost:0 > $HOME/xauth.info
Use an email tool, the rcp command, or some other file transfer method to send the file.
Mailing the file that contains your authorization information is a safer method than using rcp. If you do use rcp, do not place the file in a directory that is easily accessible by another user.
The other user must merge the entry into his or her.Xauthority file.
For this example, userhost merges xauth.info into the other user's .Xauthority file:
userhost% /usr/openwin/bin/xauth nmerge - < xauth.info
The auth-data is session-specific. Therefore, it is valid only as long as the server is not restarted.