- 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
/etc/ssh/sshd_configAllowTcpForwarding yes X11Forwarding yesxorg-x11-xauthyum install -y xorg-x11-xauth/etc/ssh/ssh_configForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
ssh -X root@ip