在linux下通过ssh运行X图形软件

服务器端:编辑/etc/ssh/sshd_config中的以下内容
启用AllowTcpForwarding
启用X11Forwarding
将X11DisplayOffset设定为10.
启用X11UseLocalhost
客户机端:编辑/etc/ssh/ssh_config中的以下内容
启用ForwardX11

连接时ssh -X或者ssh -Y就可以了

原文地址:https://www.cnblogs.com/lvdongjie/p/9673049.html