小编Tyl*_*ler的帖子

Putty->Cygwin X11 转发“无法打开显示”错误

我在 Windows 机器上使用 Putty ssh 到另一台服务器。在那里,我尝试使用 X11 转发将窗口弹出到我的计算机上。远程系统不是问题,因为它是一个大型系统,许多其他用户以同样的方式成功使用。

我通过 Putty 登录系统没有问题,然后startxwin在 cygwin 中运行。但是,xterm在 Putty 中运行时,出现错误xterm Xt error: Can't open display: localhost:##.0,其中井号是两个整数,每次登录时其值都会发生变化。

  • 我在 Putty 设置中启用了 X11 转发
  • 我尝试将“X 显示位置”设置为 localhost:0
  • 我已确保为 cygwin 下载 X11 包
  • 我试过使用 juststartx而不是startxwin
  • 我曾尝试setenv DISPLAY localhost:0setenv DISPLAY my.ip.address

不幸的是,问题仍然存在。我已经用尽了关于这个主题的谷歌搜索资源,所以我将不胜感激任何帮助。谢谢!

linux ssh cygwin putty

11
推荐指数
3
解决办法
2万
查看次数

标签 统计

cygwin ×1

linux ×1

putty ×1

ssh ×1