ssh -X前设置DISPLAY=localhost:0

如果是在windows上用XMing做XServer,前面的localhost不能省,否则会被当作一个unix domain socket,而XMing没有实现这个功能,所以会出错

 connect /tmp/.X11-unix/X0: No such file or directory
 Error: Can't open display: localhost:10.0

而指定localhost:0就会明确使用tcp socket了。

posted on 2017-09-10 09:14  冷欺花  阅读(1442)  评论(0编辑  收藏  举报

导航