1、安装xorg-x11-xauth包 2、在sshd_config里面添加如下内容
AddressFamily inet AllowTcpForwarding yes X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes