解决wrong authorisation protocol attemptedxdpyinfo: unable to open display

来源:互联网 发布:c语言字符串排序代码 编辑:程序博客网 时间:2024/05/19 19:59

如何解决wrong authorisation protocol attemptedxdpyinfo: unable to open  display: localhost:10.0

在这篇文章里说明了解决办法,

http://froebe.net/blog/2008/11/14/getting-xlib-putty-x11-proxy-wrong-authentication-protocol-attempted-i-have-the-answer/

方法其实很简单,就是把root用户的ssh认证文件内容复制到出现错误的用户的home目录里面。


:10对应的那行是需要复制的内容。

然后,使用xauth add命令复制内容。

jason $ xauth list
aspc2o1/unix:10 MIT-MAGIC-COOKIE-1 bc334c66cfec3c5c3d5b0efc4ee9d3ad



jason $ su – oracle
oracle $ xauth add aspc2o1/unix:10 MIT-MAGIC-COOKIE-1 bc334c66cfec3c5c3d5b0efc4ee9d3ad

原创粉丝点击