exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 82 discussion

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

A user generated a pair of private-public keys on a workstation. Which of the following commands will allow the user to upload the public key to a remote server and enable passwordless login?

  • A. scp ~/.ssh/id_rsa user@server:~/
  • B. rsync ~ /.ssh/ user@server:~/
  • C. ssh-add user server
  • D. ssh-copy-id user@server
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Ckl22
Highly Voted 1 year, 4 months ago
Selected Answer: D
D is the correct command but is missing the path to the public key that is to be copied over $ ssh-copy-id -i ~/.ssh/id_rsa.pub user@host_address
upvoted 7 times
...
Alizadeh
Most Recent 8 months, 3 weeks ago
Selected Answer: D
The correct answer is D. ssh-copy-id user@server.
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