LX0-104 · Question #301
Which of the following commands would an administrator use to create an OpenSSH authentication key?
The correct answer is C. ssh-keygen. The ssh-keygen command is the standard utility used by administrators to generate authentication key pairs for OpenSSH, consisting of a public and private key.
Question
Options
- Asshd
- Bssh-agent
- Cssh-keygen
- Dssh-add
How the community answered
(33 responses)- A3% (1)
- B6% (2)
- C88% (29)
- D3% (1)
Why each option
The `ssh-keygen` command is the standard utility used by administrators to generate authentication key pairs for OpenSSH, consisting of a public and private key.
`sshd` is the OpenSSH daemon that listens for incoming SSH connections, not a key generation tool.
`ssh-agent` is a program that holds private keys used for public key authentication, allowing them to be used without re-entering passphrases, but it does not create the keys.
`ssh-keygen` is the standard OpenSSH command-line utility specifically designed to create, manage, and convert authentication keys (both public and private) for secure shell (SSH) connections. It supports various key types like RSA, DSA, ECDSA, and Ed25519.
`ssh-add` adds identity files (private keys) to the authentication agent (`ssh-agent`), it does not generate new keys.
Concept tested: Generating OpenSSH authentication keys
Source: https://man.openbsd.org/ssh-keygen.1
Topics
Community Discussion
No community discussion yet for this question.