nerdexam
Linux_Foundation

LFCS · Question #510

When generating new authentication keys with SSH for a user, where should the private key be kept?

The correct answer is A. On any trusted system from which the user will login. The SSH private key must be kept on the client machine from which the user initiates SSH connections to authenticate against remote servers.

Submitted by rania.sa· Apr 18, 2026Operation of Running Systems

Question

When generating new authentication keys with SSH for a user, where should the private key be kept?

Options

  • AOn any trusted system from which the user will login.
  • BOn a CD-ROM or USB stick.
  • CPrinted and kept in a secure place.
  • DOnly on the computer where the key was created.
  • ESSH does not use private keys.

How the community answered

(26 responses)
  • A
    88% (23)
  • C
    8% (2)
  • E
    4% (1)

Why each option

The SSH private key must be kept on the client machine from which the user initiates SSH connections to authenticate against remote servers.

AOn any trusted system from which the user will login.Correct

The private key is a secret credential used by the client machine to prove its identity to an SSH server. Therefore, it must reside on the trusted system(s) from which the user intends to log in, typically in the `~/.ssh/` directory, and protected with strong permissions and often a passphrase.

BOn a CD-ROM or USB stick.

While a CD-ROM or USB stick can be used for secure storage, the private key needs to be accessible on the client system for SSH to function, making this an impractical primary location for regular use.

CPrinted and kept in a secure place.

Printing a private key introduces a physical security risk and makes it unusable for automated SSH authentication.

DOnly on the computer where the key was created.

Limiting the private key to only the creation machine restricts the user's ability to log in from other trusted clients, which is a common use case for SSH keys.

ESSH does not use private keys.

SSH (Secure Shell) heavily relies on asymmetric cryptography, which uses a pair of keys: a public key (placed on the server) and a private key (kept by the user).

Concept tested: SSH private key storage

Source: https://man7.org/linux/man-pages/man1/ssh-keygen.1.html

Topics

#SSH#Private Key#Authentication#Key Management

Community Discussion

No community discussion yet for this question.

Full LFCS Practice