nerdexam
LPI

117-102 · Question #265

You have generated a DSA authentication key on host linux1. In order to log into host linux2 with the new key, what do you need to do?

The correct answer is B. Copy the new authentication key into $HOME/.ssh/authorized_keys on linux2. See the full explanation below for the reasoning.

Question

You have generated a DSA authentication key on host linux1. In order to log into host linux2 with the new key, what do you need to do?

Options

  • ACopy the new authentication key into /etc/ssh/sshd_config on linux2.
  • BCopy the new authentication key into $HOME/.ssh/authorized_keys on linux2.
  • CCopy the new authentication key into $HOME/.ssh/id_dsa on linux2.
  • DCopy the new authentication key into $HOME/.ssh/id_dsa on linux1.
  • ELog into linux2 using the command ssh --key.

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    76% (25)
  • C
    3% (1)
  • D
    12% (4)
  • E
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 117-102 Practice