nerdexam
CompTIA

XK0-005 · Question #814

A newly hired Linux administrator needs to grant access to the Linux servers by generating a password-protected RSA key of 4096 bytes. Which of the following commands will accomplish this task?

The correct answer is B. ssh-keygen -t rsa -b 4096. The command 'ssh-keygen -t rsa -b 4096' generates an RSA key pair with a 4096-bit key size. The '-t rsa' flag specifies the key type as RSA, and '-b 4096' sets the key length to 4096 bits. When run interactively, ssh-keygen will prompt for a passphrase, making the key…

Security

Question

A newly hired Linux administrator needs to grant access to the Linux servers by generating a password-protected RSA key of 4096 bytes. Which of the following commands will accomplish this task?

Options

  • Assh-keygen -RPb 4096
  • Bssh-keygen -t rsa -b 4096
  • Cssh-keygen -k rsa -l 4096 -p
  • Dssh-keygen -t dsa -B 4096

How the community answered

(67 responses)
  • A
    4% (3)
  • B
    93% (62)
  • C
    1% (1)
  • D
    1% (1)

Explanation

The command 'ssh-keygen -t rsa -b 4096' generates an RSA key pair with a 4096-bit key size. The '-t rsa' flag specifies the key type as RSA, and '-b 4096' sets the key length to 4096 bits. When run interactively, ssh-keygen will prompt for a passphrase, making the key password-protected. Option A uses '-R' (removes a host key) and '-P' (old passphrase), not for generation. Option C uses invalid flags '-k' and '-l'. Option D uses '-t dsa', which generates a DSA key (not RSA), and DSA is limited to 1024 bits and considered weak.

Topics

#SSH#Key Generation#RSA#Secure Authentication

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice