exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 267 discussion

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

A Linux administrator attempts to log in to a server over SSH as root, and receives the following error message: Permission denied, please try again. The administrator is able to log in to the console of the server directly with root and has confirmed the password is correct. The administrator reviews the configuration of the SSH service and gets the following output:



Based on the above output, which of the following will most likely allow the administrator to log in over SSH to the server?

  • A. Log out other user sessions because only one is allowed at a time.
  • B. Enable PAM and configure the SSH module.
  • C. Modify the SSH port to use 2222.
  • D. Use a key to log in as root over SSH.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Jonasbet
2 weeks ago
Selected Answer: D
PermitRootLogin: Controls whether the root user can log in via SSH. prohibit-password: Allows root login only with SSH keys (public-key authentication) and blocks password-based logins.
upvoted 2 times
...
johnsie
1 month ago
Selected Answer: A
max session is 1
upvoted 1 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 ...