exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 420 discussion

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

A systems administrator needs to prevent the root account from being used to log in to a Linux server via SSH. Which of the following configuration files does the systems administrator need to edit to perform this task?

  • A. /etc/passwd
  • B. /etc/sshd_config
  • C. ~/.ssh/config
  • D. /etc/sysconfig/sshd
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
saci_frosty
Highly Voted 2 years, 5 months ago
The file you edit is /etc/ssh/sshd_config by changing to PermitRootLogin no
upvoted 5 times
...
pablo23449
Most Recent 2 years, 5 months ago
Answer is B
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