IBM
000-221 · Question #20
000-221 Question #20: Real Exam Question with Answer & Explanation
The correct answer is A. Create a public & private key on hosta. SSH key-based trust requires generating a key pair on the initiating host and distributing the public key to the destination host's authorized_keys file.
Question
An administrator wants to run secure commands as user1 from hosta to hostb using OpenSSH. Which actions will configure SSH trust?
Options
- ACreate a public & private key on hosta
- BCreate a public & private key on hostb
- CCreate a public & private key on hosta
- DCreate a public & private key on hosta
Explanation
SSH key-based trust requires generating a key pair on the initiating host and distributing the public key to the destination host's authorized_keys file.
Common mistakes.
- B. Keys must be generated on the initiating host (hosta), not the destination; generating them on hostb would configure trust for connections originating from hostb, not hosta.
- C. Key generation alone does not establish trust - the public key must also be copied to hostb's authorized_keys file for the authentication to succeed.
- D. Without completing the distribution of hosta's public key to hostb's authorized_keys, the key pair exists but SSH trust between the two hosts is not actually established.
Concept tested. OpenSSH key-based authentication and trust setup
Reference. https://www.openssh.com/manual.html
Community Discussion
No community discussion yet for this question.