1.首先查看本機(jī)sshd是否開啟X11轉(zhuǎn)發(fā)
grep X11Forwarding /etc/ssh/sshd_config
X11Forwarding yes
# X11Forwarding no
2.檢查xorg-x11是否安裝
rpm -qa |grep xorg
3.命令如下:
ssh -XY username@ipaddress
-Y啟用受信任的X11轉(zhuǎn)發(fā)
-x禁止x11轉(zhuǎn)發(fā)
-X允許x11轉(zhuǎn)發(fā)