exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 176 discussion

Actual exam question from CompTIA's XK0-004
Question #: 176
Topic #: 1
[All XK0-004 Questions]

A junior systems administrator has generated a PKI certificate for SSH sessions. The administrator would like to configure authentication without passwords to remote systems. Which of the following should the administrator perform?

  • A. Add the content of id_rsa.pub file to the remote system ~/.ssh/authorized_keys location.
  • B. Add the content of id_rsa file to the remote system ~/.ssh/authorized_keys location.
  • C. Add the content of id_rsa file to the remote system ~/.ssh/known_hosts location.
  • D. Add the content of id_rsa.pub file to the remote system ~/.ssh/known_hosts location.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference:
https://kb.iu.edu/d/aews

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Dan_Dan_The_Data_Center_Man
3 years, 7 months ago
Correct. You always keep your private key and only share your public key. If the remote system is not configured to support password-based authentication, you will need to ask system administrators to add your public key to the ~/.ssh/authorized_keys file in your account Your private key will be generated using the default filename (for example, id_rsa) or the filename you specified (for example, my_ssh_key), and stored on your computer in a .ssh directory off your home directory (for example, ~/.ssh/id_rsa or ~/.ssh/my_ssh_key). The corresponding public key will be generated using the same filename (but with a .pub extension added) and stored in the same location (for example, ~/.ssh/id_rsa.pub or ~/.ssh/my_ssh_key.pub).
upvoted 3 times
Dan_Dan_The_Data_Center_Man
3 years, 7 months ago
Correct Answer is A.
upvoted 5 times
Didi31
3 years, 4 months ago
I really like your explanation Dan. How did the test go?
upvoted 3 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...