A Linux systems administrator is hardening a server based on a new security policy. The policy requires that users must be prevented from running graphical applications over their SSH sessions to reduce the attack surface. Which of the following lines should the administrator add or modify in the /etc/ssh/sshd_config file to enforce this requirement?
The correct directive to disable X11 forwarding in the SSH daemon configuration is X11Forwarding no. This setting explicitly prevents the tunneling of X11 traffic. The other options are incorrect. AllowX11Forwarding no is not a valid directive in sshd_config. X11DisplayOffset 10 is a valid directive, but it specifies the starting display number for X11 forwarding, it does not disable it. PermitUserEnvironment no is also a valid directive, but it controls whether users can set environment variables through SSH, which is unrelated to forwarding graphical sessions.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is X11 forwarding in SSH?
Open an interactive chat with Bash
Why is 'X11Forwarding no' important for server security?
Open an interactive chat with Bash
What does the `PermitUserEnvironment no` directive do?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access