nerdexam
CompTIA

XK0-005 · Question #10751

Which of the following describes how a user's public key is used during SSH authentication?

The correct answer is B. The user's public key is verified against a list of authorized keys. If it is found, the user is allowed. During SSH public key authentication, the server verifies the client's public key against a list of authorized keys to grant access.

Security

Question

Which of the following describes how a user's public key is used during SSH authentication?

Options

  • AThe user's public key is used to hash the password during SSH authentication.
  • BThe user's public key is verified against a list of authorized keys. If it is found, the user is allowed
  • CThe user's public key is used instead of a password to allow server access.
  • DThe user's public key is used to encrypt the communication between the client and the server.

How the community answered

(23 responses)
  • B
    91% (21)
  • C
    4% (1)
  • D
    4% (1)

Why each option

During SSH public key authentication, the server verifies the client's public key against a list of authorized keys to grant access.

AThe user's public key is used to hash the password during SSH authentication.

The user's public key is not used to hash a password during SSH public key authentication, which bypasses password usage.

BThe user's public key is verified against a list of authorized keys. If it is found, the user is allowedCorrect

When a user attempts to authenticate via SSH with a private key, the server checks if the corresponding public key is present in the user's `~/.ssh/authorized_keys` file. If found, the server challenges the client by encrypting a random string with the public key, and the client proves its identity by successfully decrypting it with the private key.

CThe user's public key is used instead of a password to allow server access.

While public key authentication replaces password authentication, the public key itself is not a direct substitute for a password; instead, it's part of a cryptographic challenge-response mechanism involving both keys.

DThe user's public key is used to encrypt the communication between the client and the server.

The user's public key is part of the authentication process and initial key exchange for secure communication, but session keys generated during handshake primarily encrypt the ongoing communication between client and server.

Concept tested: SSH public key authentication

Source: https://www.ssh.com/academy/ssh/public-key-authentication

Topics

#SSH#Public Key Authentication#Authentication#Security

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice