Security
A security baseline requires that users cannot run remote graphical applications through SSH sessions to a server. Which sshd_config directive meets the requirement?
Show the answer
Correct answerB. X11Forwarding no
AWhy not this: AllowTcpForwarding controls TCP port forwarding with -L and -R; X11 forwarding is a separate channel it does not block.
BWhy this is right: X11Forwarding no makes sshd refuse X11 forwarding requests, so graphical applications cannot be forwarded.
CWhy not this: PermitTunnel controls tun/tap device forwarding for VPN-style tunnels, not X11 traffic.
DWhy not this: AllowAgentForwarding controls forwarding of the SSH agent's keys, not graphical application traffic.
With X11Forwarding no, sshd rejects X11 forwarding requests, which reduces exposure of the client's X display to a compromised server. It does not just hide a variable; the forwarding channel is never set up.