exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 121 discussion

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

A systems administrator is tasked with setting up key-based SSH authentication. In which of the following locations should the administrator place the public keys for the server?

  • A. ~/.sshd/authkeys
  • B. ~/.ssh/keys
  • C. ~/.ssh/authorized_keys
  • D. ~/.ssh/keyauth
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
Alizadeh
8 months, 3 weeks ago
Selected Answer: C
The correct answer is C. ~/.ssh/authorized_keys.
upvoted 1 times
...
linux_admin
1 year, 2 months ago
Selected Answer: C
The location where the systems administrator should place the public keys for the server to set up key-based SSH authentication is option C, ~/.ssh/authorized_keys. The authorized_keys file is located in the .ssh directory in the home directory of the user account that is being used to log in to the remote server. This file contains a list of public keys that are allowed to authenticate the user when logging in to the server via SSH. To set up key-based SSH authentication, the systems administrator should copy the public key(s) of the user(s) to the remote server's authorized_keys file using a secure method such as scp. Once the public key(s) have been added to the file, the user(s) should be able to log in to the server using their corresponding private key(s) without being prompted for a password.
upvoted 2 times
...
Ckl22
1 year, 4 months ago
Selected Answer: C
Answer is C "After that, copy the new public key to the server system's ~/.ssh/authorized_keys filesystem using the ssh‐copy‐id utility."
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago