“MobaXterm X11 proxy: Unsupported authorisation protocol”解决方法

服务器无法显示GUI图片问题
在解决这个问题的时候,可能很多人都搜到了用sudo的方法,但是在我们没有管理权限的情况下,这个问题也是能解决的。
报错信息
我的报错信息:

MobaXterm X11 proxy: Unsupported authorisation protocol
Could not open display localhost:18.0

下面就以我的报错信息为例,展示解决的方法。
方法:

  1. 在MobaXterm命令行输入mcookie,然后你会收到一串字符
27e035688dd89483c6fe48b2470172f5

记得保留这串字符。
2. 输入以下命令

xauth add localhost/unix:18 MIT-MAGIC-COOKIE-1 27e035688dd89483c6fe48b2470172f5

你需要修改的部分就是18,这个是从你报错的地方来看的,就是最开始的报错信息

Could not open display localhost:18.0

以上输入结束后就成功了。

补充
可能你在执行上面指令的时候还会出现其他的问题。
问题1

/usr/bin/xauth: timeout in locking authority file /home/sam/.Xauthority

对于这个问题,在根目录执行

rm -fr .Xauthority-*

即删除这些文件,再次执行前面的xauth命令就可以了
问题2

xauth: (stdin):1:  bad display name "$DISPLAY" in "list" command

其实这个问题就是你在复制黏贴第二步的指令的时候后面那串长长的字符给漏了,也就是忘记加参数了。。

参考链接:

  1. https://unix.stackexchange.com/questions/215558/why-am-i-getting-this-message-from-xauth-timeout-in-locking-authority-file-ho
  2. https://superuser.com/questions/1111900/how-to-fix-mobaxterm-x11-proxy-unsupported-authorisation-protocol

如果觉得我有地方讲的不好的或者有错误的欢迎给我留言,谢谢大家阅读(点个赞我可是会很开心的哦)~

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章