nerdexam
CompTIA

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.

Security

Question

Which of the following commands would an administrator use to create an OpenSSH authentication key?

Options

  • Asshd
  • Bssh-agent
  • Cssh-keygen
  • Dssh-add

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    88% (29)
  • D
    3% (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.

Asshd

`sshd` is the OpenSSH daemon that listens for incoming SSH connections, not a key generation tool.

Bssh-agent

`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.

Cssh-keygenCorrect

`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.

Dssh-add

`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

#OpenSSH#SSH keys#ssh-keygen

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice