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.
Question
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)- B91% (21)
- C4% (1)
- D4% (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.
The user's public key is not used to hash a password during SSH public key authentication, which bypasses password usage.
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.
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.
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
Community Discussion
No community discussion yet for this question.