Information
The SSH daemon must prevent remote hosts from connecting to the proxy display.
When X11 forwarding is enabled, there may be additional exposure to the server and client displays if the sshd proxy display is configured to listen on the wildcard address. By default, sshd binds the forwarding server to the loopback address and sets the hostname part of the DIPSLAY environment variable to localhost. This prevents remote hosts from connecting to the proxy display.
Solution
Configure the SSH daemon to prevent remote hosts from connecting to the proxy display.
Edit the /etc/ssh/sshd_config file to set the X11UseLocalhost parameter to yes above any Include and Match entries as follows:
X11UseLocalhost yes
Note: First occurrence of a option takes precedence, Match set statements withstanding. If Include locations are enabled, used, and order of precedence is understood in your environment, the entry may be created in a file in Include location.