title: X11 Forwarding can't open display (client rejected?)
body: <p>I've read similar questions, and have applied the suggestions posted, but none seem to fix my issue...</p>
  
  <p>In Putty, I've enabled x11 forwarding, with the 'X display location' set to 0.0</p>
  
  <p>The remote Debian 8.4's X -version is  1.16.4, with the the /etc/ssh/ssh_config set to:</p>
  
  <pre><code> ForwardX11 yes
   ForwardX11 Trusted yes
  </code></pre>
  
  <p>and /etc/ssh/sshd_config:</p>
  
  <pre><code> X11Forwarding yes
  </code></pre>
  
  <p>I've also forced the DISPLAY variable to point to my local machine's IP:</p>
  
  <pre><code> export DISPLAY=192.168.1.140:0.0
  </code></pre>
  
  <p>and verified it's set correctly (using 'echo $DISPLAY')</p>
  
  <p>Finally, I restarted: 'service ssh restart' and 'service sshd restart'.   Unfortunately, when I enter 'xterm&amp;', I get the error 
  "Can't open display: %s", and the locally running xming (Win8) never shows anything.  </p>
  
  <p>The Xming log seems to show an authentication error:</p>
  
  <pre><code> winClipboardProc - Hello
   DetectUnicodeSupport - Windows Vista
   winClipboardProc - DISPLAY=127.0.0.1:0.0
   winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display.
   winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display.
   winClipboardProc - XOpenDisplay () returned and successfully opened the display.
   AUDIT: Mon Jul 04 09:40:48 2016: 2508 C:\Program Files (x86)\Xming\Xming.exe: client 4 rejected from IP 192.168.1.151 
  
   [Note: the 192.168.1.151 is the IP of the BBB (ifconfig -a)]
  </code></pre>
  
  <p>I also verified that the Window's firewall is NOT blocking xming.</p>
  
  <p>Not sure if it's significant, but the remote debian is running on a beaglebone black.  </p>