<p>I installed minikube in a remote computer. The service is up and the configuration looks ok:</p>
<pre><code>$ kubectl cluster-info
Kubernetes master is running at https://192.168.49.2:8443
KubeDNS is running at https://192.168.49.2:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
</code></pre>
<p>I am connected to this computer through SSH and am able to launch all graphic applications. Sanity check, confirming X11 forwarding is allowed:</p>
<pre><code>$ grep X11Forwarding /etc/ssh/sshd_config
X11Forwarding yes
</code></pre>
<p>But when I try to start the dashboard I get an X11 error:</p>
<pre><code>$ minikube dashboard
* Verifying dashboard health ...
* Launching proxy ...
* Verifying proxy health ...
* Opening http://127.0.0.1:39571/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/ in your default browser...
X11 connection rejected because of wrong authentication.
[61559:61559:1119/114641.640444:ERROR:browser_main_loop.cc(1434)] Unable to open X display.
</code></pre>
<p>What could be the cause?</p>
<p><strong>Update</strong>: replying to <a href="https://stackoverflow.com/questions/64910125/start-minikube-dashboard-in-remote-computer-through-ssh?noredirect=1#comment114761931_64910125">larks below</a>, the <code>ForwardX11Trusted</code> parameter is set to <code>yes</code> on the SSH client:</p>
<pre><code>$ cat /etc/ssh/ssh_config | grep ForwardX11Trusted
   ForwardX11Trusted yes
</code></pre>

Luís de Sousa
<p>There could be plenty of reasons for that. You may just need to:</p>
<pre><code>export XAUTHORITY=$HOME/.Xauthority
</code></pre>
<p>Also make sure <code>~/.Xauthority</code> is owned by you.</p>
<p>In order to verify it, run:</p>
<pre><code>ls -l ~/.Xauthority
</code></pre>
<p>And then, depending on the result, you may need to fix ownership and permissions on that file with:</p>
<pre><code>chown user:group ~/.Xauthority
</code></pre>
<p>and</p>
<pre><code>chmod 0600 ~/.Xauthority
</code></pre>
