QuestionQ418
Application Deployment and SecurityDrag the code snippets from the bottom to the blanks in the code to disable X11Forwarding on the SSH service of a CentOS server. Not every option is used.
Drag & Drop
state: present
state: enabled
state: disabled
line: "X11Forwarding yes"
line: "X11Forwarding no"
line: "X11Forwarding run"
state: absent
--- - name: Perform basic hardening tasks on a CentOS server hosts: hardening tasks: - name: Disable X11 forwarding lineinfile: path: "/etc/ssh/sshd_config" - name: Make sure X11 forwarding is absent lineinfile: path: "/etc/ssh/sshd_config" - name: Restart sshd, issue daemon-reload to pick-up config changes systemd: state: restarted daemon_reload: yes name: sshd
Community Discussion