我在一台远程计算机上安装了微型计算机。服务已启动,配置看起来正常:
$ 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'.我通过SSH连接到这台计算机,并能够启动所有图形应用程序。检查是否正确,确认是否允许X11转发:
$ grep X11Forwarding /etc/ssh/sshd_config
X11Forwarding yes但是,当我尝试启动仪表板时,我会得到一个X11错误:
$ 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.可能是什么原因?
Update:响应larks below,在SSH客户端上将ForwardX11Trusted参数设置为yes:
$ cat /etc/ssh/ssh_config | grep ForwardX11Trusted
ForwardX11Trusted yes发布于 2020-11-20 11:18:13
这可能有很多原因。你可能只需要:
export XAUTHORITY=$HOME/.Xauthority还要确保~/.Xauthority是由您拥有的。
为了验证它,运行:
ls -l ~/.Xauthority然后,根据结果,您可能需要使用以下方法修复该文件的所有权和权限:
chown user:group ~/.Xauthority和
chmod 0600 ~/.Xauthorityhttps://stackoverflow.com/questions/64910125
复制相似问题