nerdexam
CompTIA

XK0-005 · Question #1769

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…

The correct answer is D. Use a key to log in as root over SSH. Based on the SSH configuration shown in the image, let's analyze the settings: PermitRootLogin prohibit-password: This setting disables password authentication for the root user, meaning root cannot log in using a password but can still log in using key-based…

Security

Question

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?

Exhibit

XK0-005 question #1769 exhibit

Options

  • ALog out other user sessions because only one is allowed at a time.
  • BEnable PAM and configure the SSH module.
  • CModify the SSH port to use 2222.
  • DUse a key to log in as root over SSH.

How the community answered

(54 responses)
  • A
    2% (1)
  • B
    11% (6)
  • C
    4% (2)
  • D
    83% (45)

Explanation

Based on the SSH configuration shown in the image, let's analyze the settings: PermitRootLogin prohibit-password: This setting disables password authentication for the root user, meaning root cannot log in using a password but can still log in using key-based PasswordAuthentication yes: Password authentication is enabled for non-root users. Use PAM no: PAM (Pluggable Authentication Modules) is disabled. MaxSessions 1: Only one session is allowed at a time. MaxAuthTries 3: Limits the number of authentication attempts. Since the PermitRootLogin prohibit-password option is set, root cannot log in using a password but can log in using SSH key-based authentication.

Topics

#SSH#Authentication#Root login#Security

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice