A Linux administrator needs to enhance the security of an SSH server. The requirement is to permit only the local users 'adminuser' and 'devuser' to log in via SSH. All other user access via SSH must be denied. Which of the following lines should be added to the /etc/ssh/sshd_config file to achieve this configuration?
The correct directive to achieve the specified outcome is AllowUsers adminuser devuser. In the /etc/ssh/sshd_config file, the AllowUsers directive, when specified, restricts SSH login to only the users listed. The usernames should be separated by spaces. The AllowGroups directive would be used to specify allowed groups, not individual users. PermitUserLogin and RequiredUsers are not valid directives within the sshd_config file.
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 the purpose of the AllowUsers directive in sshd_config?
Open an interactive chat with Bash
How does the AllowGroups directive differ from AllowUsers in sshd_config?
Open an interactive chat with Bash
What steps must be taken to apply changes to sshd_config after editing it?
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...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .