The terminology used in port forwarding is reversed from that used in
setting up an SSH session. Specifically:
Use the SSH command on host VMSHOST1 to set up an X11 port
forward to the SSH server on VMSHOST2.
Run the X11 client on host VMSHOST2 for display by the X11
server on host VMSHOST1.
The following configuration parameters allow you to control port forwarding:
ForwardX11, specified in the client configuration
file, controls whether the SSH client performs port forwarding. This is set
to yes by default.
AllowX11Forwarding, specified in the server
configuration file, controls whether the SSH server allows port forwarding.
This is set to yes by default.
xauthpath, specified in the client configuration
file, specifies the location of the Xauthentication executable file.
For more information about these configuration parameters, see Appendix B.