LFCA · Question #63
Which utility is used to create public and private key pairs for SSH authentication?
The correct answer is B. ssh-keyqen. The ssh-keygen utility is specifically used to generate the public and private key pairs required for secure SSH authentication.
Question
Which utility is used to create public and private key pairs for SSH authentication?
Options
- Aadduser
- Bssh-keyqen
- Ckeyqen
- Dssh
How the community answered
(30 responses)- B93% (28)
- C3% (1)
- D3% (1)
Why each option
The `ssh-keygen` utility is specifically used to generate the public and private key pairs required for secure SSH authentication.
`adduser` is a command used to create new user accounts on a Linux system, not to generate cryptographic key pairs.
The `ssh-keygen` command is the standard utility on Unix-like operating systems that creates new public and private key files, which are essential for establishing secure, passwordless SSH connections based on public key cryptography.
While 'keygen' refers to a key generator, `ssh-keygen` is the precise and correct utility name for generating SSH keys.
`ssh` is the client program used to initiate a secure shell connection to a remote server, not to generate the underlying authentication keys.
Concept tested: SSH key pair generation utility
Source: https://man7.org/linux/man-pages/man1/ssh-keygen.1.html
Topics
Community Discussion
No community discussion yet for this question.