ssh 转发 X11

  • CentOS7
    • 服务器配置 /etc/ssh/sshd_config
    AllowTcpForwarding yes X11Forwarding yes
    • 服务器安装 xorg-x11-xauth
    yum install -y xorg-x11-xauth
  • 本地修改文件 /etc/ssh/ssh_config
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
  • 登录
ssh -X root@ip