运行python STAMP程序报错

运行python STAMP程序报错

PuTTY X11 proxy: unable to connect to forwarded X server: Network error: Connection refused

 : cannot connect to X server localhost:10.0



解决办法:

Other answers are outdated, or incomplete, or simply don't work.

You need to also specify an X-11 server on the host machine to handle the launch of GUId programs. If the client is a Windows machine install Xming. If the client is a Linux machine install XQuartz.

Now suppose this is Windows connecting to Linux. In order to be able to launch X11 programs as well over putty do the following:

- Launch XMing on Windows client
- Launch Putty
    * Fill in basic options as you know in session category
    * Connection -> SSH -> X11
        -> Enable X11 forwarding
        -> X display location = :0.0
        -> MIT-Magic-Cookie-1
        -> X authority file for local display = point to the Xming.exe executable

Of course the ssh server should have permitted Desktop Sharing "Allow other user to view your desktop".

MobaXterm and other complete remote desktop programs work too.


https://stackoverflow.com/questions/34932495/forward-x11-failed-network-error-connection-refused/44575703

  • 发表于 2021-01-05 14:12
  • 阅读 ( 68 )
  • 分类:linux

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
omicsgene
omicsgene

生物信息

389 篇文章

作家榜 »

  1. omicsgene 389 文章
  2. 安生水 217 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. CORNERSTONE 72 文章
  6. 红橙子 55 文章
  7. 生信老顽童 48 文章
  8. landy 37 文章