下载软件

MobaXterm

软件下载目录

D:\BaiduNetdiskDownload\【爱跑咪 iPaoMi.com】MobaXterm

软件安装目录

D:\Program Files (x86)\Mobatek\MobaXterm

 

远程使用错误处理

X11 proxy: Unsupported authorisation protocol

参考文章

https://askubuntu.com/questions/772090/how-can-i-resolve-x11-problem-with-putty-if-i-have-this-error-putty-x11-proxy

处理步骤 :

1、 执行sudo apt-get purge xauth清除.Xauthority

.Xauthority

删除用户home目录下.Xauthority文件

2、执行sudo apt-get install xauth生成新的.Xauthority

3、在MobaXterm中执行 xclock 或者firefox能打开时钟

linux远程图形化管理GUI

或者能打开火狐浏览器则算成功

linux远程图形化管理GUI

 

 

其它错误处理:

一:用户zpn没有设置home目录

usermod -d  /home/zpn zpn

二:apt-get: command not found

先执行sudo apt  install 然后再执行sudo apt-get install xauth

 

 

 

 

参考文章原文

On my client PC I'm running Windows 10 and I have installed XMing and Xming Fonts.

I am running Putty and I have configured it to enable X11 Forwarding. I have tried leaving the X display location blank (as default) and also with the value :0.0.

On my server I'm running Ubuntu on AWS. I edited the /etc/ssh/ssh_config file to include the following two lines:

ForwardX11 yes
ForwardX11Trusted yes

I also installed xauth using sudo apt-get install xauth

Whenever I try to run an application, like xterm & or xclock I get the same error:

PuTTY X11 proxy: Unsupported authorisation protocol
Error: Can't open display: localhost:10.0

I've combed the Internet and found a number of other people reporting the same problem, but no clear fix, at least that has worked for me. Anybody else solved this problem?

ssh putty x11-forwarding

shareimprove this question

edited May 14 '16 at 4:25

user533208

asked May 14 '16 at 1:01

linux远程图形化管理GUI

Barry

31114

  • try adding 127.0.0.1 localhost to your hosts file – user257256 May 14 '16 at 5:26

add a comment

1 Answer

activeoldestvotes

2

 

I was able to finally figure out a solution. The problem seems to have been with the .Xauthority file. The owner of the file was root (see below).

-rw-------  1 root   root      124 May 13 18:19 .Xauthority
-rw-------  2 ubuntu ubuntu      0 May 14 19:56 .Xauthority-c
-rw-------  2 ubuntu ubuntu      0 May 14 19:56 .Xauthority-l

I tried to delete the file and restart xauth and ssh but that didn't work so I removed xauth entirely using sudo apt-get purge xauth. Then I deleted all of the .Xauthority files in my home directory. Then I reinstalled xauth, again using sudo apt-get install xauth. The new .Xauthority file was owned by ubuntu.

-rw-------  1 ubuntu ubuntu    100 May 14 20:27 .Xauthority

I ended up testing Putty with the X display location of :localhost.0 as well as :0.0 but it didn't seem to matter since both worked. I then tested with xclock & and it popped right up, finally.

相关文章:

  • 2021-08-28
  • 2021-12-14
  • 2021-12-01
  • 2021-11-19
  • 2021-10-10
  • 2021-07-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-07
  • 2021-07-17
  • 2021-05-20
  • 2022-01-06
  • 2021-11-13
相关资源
相似解决方案