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...
IT & Cybersecurity Package Join Premium for Full Access