LFCS · 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 correct utility for creating new OpenSSH authentication key pairs, consisting of both public and private keys.
Question
Options
- Asshd
- Bssh-agent
- Cssh-keygen
- Dssh-add
How the community answered
(45 responses)- A4% (2)
- B2% (1)
- C93% (42)
Why each option
The `ssh-keygen` command is the correct utility for creating new OpenSSH authentication key pairs, consisting of both public and private keys.
`sshd` is the OpenSSH daemon that listens for and handles incoming SSH connections, it does not create keys.
`ssh-agent` is a program that holds private keys used for public key authentication, it does not create keys.
The `ssh-keygen` command is specifically designed to generate, manage, and convert authentication keys for SSH. It creates both the public and private key files necessary for public-key authentication in OpenSSH.
`ssh-add` is used to add private keys to the authentication agent (`ssh-agent`), it does not create new keys.
Concept tested: OpenSSH key generation
Source: https://www.openssh.com/manual.html#ssh-keygen
Topics
Community Discussion
No community discussion yet for this question.