exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 48 discussion

Actual exam question from CompTIA's XK0-005
Question #: 48
Topic #: 1
[All XK0-005 Questions]

To harden one of the servers, an administrator needs to remove the possibility of remote administrative login via the SSH service. Which of the following should the administrator do?

  • A. Add the line DenyUsers root to the /etc/hosts.deny file.
  • B. Set PermitRootLogin to no in the /etc/ssh/sshd_config file.
  • C. Add the line account required pam_nologin. so to the /etc/pam.d/sshd file.
  • D. Set PubKeyAuthentication to no in the /etc/ssh/ssh_config file.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Alizadeh
8 months, 3 weeks ago
Selected Answer: B
The correct answer is B. Set PermitRootLogin to no in the /etc/ssh/sshd_config file.
upvoted 2 times
...
linux_admin
1 year, 2 months ago
The administrator should set the PermitRootLogin option to no in the /etc/ssh/sshd_config file. This option determines whether the root user is allowed to log in to the SSH service remotely. Setting this option to no disables remote administrative login via SSH for the root user, providing additional security to the server.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago