Exam 202-450 Topic 8 Question 88 Discussion
Actual exam question for Lpi's 202-450 exam
Question #: 88
Topic #: 8
Question #: 88
Topic #: 8
What option in the sshd configuration file instructs sshd to permit only specific user names to log in to a system?
(Specify ONLY the option name without any values.)
(Specify ONLY the option name without any values.)
Suggested Answer:
AllowUsers
Explanation:
The option in the sshd configuration file that instructs sshd to permit only specific user names to log in to a system is AllowUsers.
This option can be followed by a list of user name patterns, separated by spaces, that are allowed to log in.
For example:
AllowUsers alice bob
This will allow only alice and bob to log in via ssh. Any other user will be denied access. The AllowUsers option can also take the form USER@HOST to restrict logins to particular users from particular hosts. For example:
AllowUsers [email protected].* [email protected]
This will allow alice to log in from any host in the 192.168.1.0/24 network, and bob to log in from the host example.com. The AllowUsers option can be used in conjunction with the DenyUsers option, which does the opposite. The allow/deny directives are processed in the following order: DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups.
References:
sshd_config - OpenSSH SSH daemon configuration file
Allow Or Deny SSH Access To A Particular User Or Group In Linux - OSTechNix
Explanation:
The option in the sshd configuration file that instructs sshd to permit only specific user names to log in to a system is AllowUsers.
This option can be followed by a list of user name patterns, separated by spaces, that are allowed to log in.
For example:
AllowUsers alice bob
This will allow only alice and bob to log in via ssh. Any other user will be denied access. The AllowUsers option can also take the form USER@HOST to restrict logins to particular users from particular hosts. For example:
AllowUsers [email protected].* [email protected]
This will allow alice to log in from any host in the 192.168.1.0/24 network, and bob to log in from the host example.com. The AllowUsers option can be used in conjunction with the DenyUsers option, which does the opposite. The allow/deny directives are processed in the following order: DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups.
References:
sshd_config - OpenSSH SSH daemon configuration file
Allow Or Deny SSH Access To A Particular User Or Group In Linux - OSTechNix
by Elva at Jul 19, 2026, 08:38 PM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).