Centos7系统如何禁用X11Forwarding

处理过程方法:

1.打开sshd配置文件

vi /etc/ssh/sshd_config

2.找到X11Forwarding 确保设置其值设置为NO

3.保存后重启sshd服务

service sshd restart