Before you can display a remote client on your X server, you must allow the client to access your display. There are two ways you can control access to your display:
Each method has advantages and disadvantages.
Granting access to a remote host machine
is easy to accomplish, but it provides no control over
which accounts on the remote host are able to access your display.
In systems where security is of greater concern,
it is recommended that you use the authorization code method.
Be aware that the security of a system that uses the authorization
method is only as secure as the user's account;
if anyone else can read the authorization file that contains
the authorization code, they can also access your display.
Also, the authorization code method only works with
X servers that are provided with the Graphical Environment (Xsco) or with
X terminals that support the XDMCP protocol.