参考:http://unix.stackexchange.com/questions/117159/cannot-start-xterm-over-ssh-after-several-successes
问题描述:
远程调用gnuplot,
> plot 'out.txt' using 1:2。
出现,
>Error: Can't open display: localhost:11.0。
时好时坏——偶尔能显示,过会儿又不能显示。问题很难定位。
解决方法:
1 使用 ssh -Y 代替 ssh -X
或
2 在 ~/.ssh/config 中添加 ForwardX11Trusted yes
原文:
SSH blocks new X11 connections after 20 minutes in its default setup. To avoid this, run ssh -Y
instead of ssh -X
, or set the option ForwardX11Trusted yes
in