nerdexam
Linux_Foundation

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.

Submitted by chen.hong· May 4, 2026System Administration

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)
  • B
    93% (28)
  • C
    3% (1)
  • D
    3% (1)

Why each option

The `ssh-keygen` utility is specifically used to generate the public and private key pairs required for secure SSH authentication.

Aadduser

`adduser` is a command used to create new user accounts on a Linux system, not to generate cryptographic key pairs.

Bssh-keyqenCorrect

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.

Ckeyqen

While 'keygen' refers to a key generator, `ssh-keygen` is the precise and correct utility name for generating SSH keys.

Dssh

`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

#SSH#Key Generation#Authentication

Community Discussion

No community discussion yet for this question.

Full LFCA Practice