CompTIA Linux+ XK0-006 (V8) Practice Question

A Linux bastion host must be hardened so that root can never log in with SSH, only users who belong to the bastion UNIX group may start an interactive SSH session, and all X11 forwarding over SSH is disabled. After editing /etc/ssh/sshd_config and reloading the service, which group of directives will satisfy all three requirements?

  • PermitRootLogin no
    DenyGroups bastion
    X11Forwarding no
    
  • PermitRootLogin prohibit-password
    AllowUsers %bastion
    X11Forwarding no
    
  • PermitRootLogin no
    AllowGroups bastion
    X11Forwarding no
    
  • PermitRootLogin forced-commands-only
    AllowGroups bastion
    X11Forwarding yes
    
CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot