title: No xauth data warning X11 forwarding from macOS Catalina - linux
body: <p>I try to make a ssh connection from MacOS to linux. I've tried to follow several tips found on the internet, however I still get the following error when I tried to run xclock:</p>
  
  <p><em>X11 connection rejected because of wrong authentication.
  Error: Can't open display: localhost:10.0</em></p>
  
  <p>A little bit more information: </p>
  
  <ul>
  <li>It does not make any difference if I use ssh -X something@somewhere or ssh -Y something@somewhere </li>
  <li>I did install XQuartz and it is running on my Mac. xclock etc do work on Mac. </li>
  <li>When I add -vv when logging in I get the following: 
  "<em>debug1: No xauth program.
  Warning: No xauth data; using fake authentication data for X11 forwarding.
  debug1: Requesting X11 forwarding with authentication spoofing.</em>"</li>
  <li><em>which xauth</em> @ Mac gives the result /opt/X11/bin/xauth while <em>which xauth</em> logged in at the server gives /usr/bin/xauth --> Do note that at ssh_config and sshd_config (@Mac) the line XAuthLocation /opt/X11/bin/xauth is present </li>
  <li>I uncommented <em>ForwardX11 yes</em> and <em>ForwardAgent yes</em> in ssh_config @Mac </li>
  </ul>
  
  <p>If you will need any more information, please let me know! I really hope somebody could guide me to the right solution!</p>