title: What is the FULL TUTORIAL to set up X11 forwarding with the last CentOS CLEAN install?
body: <p>Is anyone can give to me the FULL process to set up X11 forwarding from a CentOS fresh and clean install on a dedicated server ?
  So, i have access to the server <strong>only by ssh</strong></p>
  
  <p>The problem is simple : i already tried i think all solution i find in google to make X11 forwarding working : </p>
  
  <p>set in /etc/ssh/sshd_config</p>
  
  <p>X11Forwarding yes</p>
  
  <p>and</p>
  
  <p>X11UseLocalhost no or X11UseLocalhost yes</p>
  
  <p>and</p>
  
  <p>XAuthLocation /usr/bin/xauth (and xauth is in this path)</p>
  
  <p>and</p>
  
  <p>AddressFamily inet or AddressFamily any</p>
  
  <p>restarting sshd after each write with /etc/init.d/sshd restart (and it tell to me it stop and start)</p>
  
  <p>i tried to install many and many things (restarting sshd after each install) like :</p>
  
  <p>yum groupinstall 'X Window System' (it works well)</p>
  
  <p>xorg-x11-utils (it works)</p>
  
  <p>xorg-x11-fonts-* (it works)</p>
  
  <p>xorg-x11-xauth (already installed)</p>
  
  <p>yum install xorg-x11-xauth.x86_64 (it works)</p>
  
  <p>when i try "strings /usr/sbin/sshd |grep xauth" i got :</p>
  
  <pre><code>/usr/bin/xauth
  xauthlocation
  maxauthtries
  No xauth program; cannot forward with spoofing.
  </code></pre>
  
  <p>but /usr/bin/xauth give me :</p>
  
  <pre><code>Using authority file /root/.Xauthority
  xauth&gt; 
  </code></pre>
  
  <p>so xauth is in the right place...</p>
  
  <p>i tried all ssh option -X, -x, -Y -XY.... nothing worked.</p>
  
  <p>i tried to set display myself, but nothing worked : </p>
  
  <p>DISPLAY is not set, Can't open display and other errors like that.</p>
  
  <p>And just after ssh login $DISPLAY is empty, always.</p>
  
  <p>And i'm not sure that i have not forget some solution i have already tried...</p>
  
  <p>Anyone to help me to get X11 forwarding working ?</p>
  
  <p>I have
  CentOS release 6.5 (Final)
  and my hoster is OVH</p>
  
  <p>PS : sorry for my bad english</p>