New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA XK0-005 Exam - Topic 4 Question 55 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 55
Topic #: 4
[All XK0-005 Questions]

A systems administrator creates a public key for authentication. Which of the following tools is most suitable to use when uploading the key to the remote

servers?

Show Suggested Answer Hide Answer
Suggested Answer: B

The best tool to use when uploading the public key to the remote servers is B. ssh-copy-id. This tool will copy the public key from the local computer to the remote server and append it to the authorized_keys file, which is used for public key authentication. This tool will also create the necessary directories and files on the remote server if they do not exist. The other tools are either not suitable or not relevant for this task. For example:

A . scp is a tool for securely copying files between hosts, but it does not automatically add the public key to the authorized_keys file.

C . ssh-agent is a tool for managing private keys and passphrases, but it does not upload the public key to the remote server.

D . ssh-keyscan is a tool for collecting public keys from remote hosts, but it does not upload the public key to the remote server.


Contribute your Thoughts:

0/2000 characters
Fallon
2 months ago
Wait, can you use ssh-agent for this? Seems off.
upvoted 0 times
...
Jimmie
2 months ago
ssh-copy-id is the best choice, no doubt!
upvoted 0 times
...
Jessenia
3 months ago
ssh-keyscan is just for scanning, not uploading keys!
upvoted 0 times
...
Jodi
3 months ago
I thought scp was the way to go?
upvoted 0 times
...
Chaya
3 months ago
Definitely ssh-copy-id for this!
upvoted 0 times
...
Richelle
3 months ago
I vaguely recall something about ssh-keyscan, but I don't think it uploads keys either. It might just gather them.
upvoted 0 times
...
Bernardo
4 months ago
I feel like ssh-agent is more about managing keys rather than uploading them, so it can't be the answer.
upvoted 0 times
...
Mariann
4 months ago
I remember practicing with scp for file transfers, but I don't think that's the right tool for this question.
upvoted 0 times
...
Viola
4 months ago
I think the answer might be ssh-copy-id since it specifically mentions uploading keys, but I'm not entirely sure.
upvoted 0 times
...
Ashanti
4 months ago
Okay, let me think this through step-by-step. We need to upload a public key, so tools like scp and ssh-agent aren't quite right. ssh-keyscan is more for scanning for host keys, not uploading your own. That leaves ssh-copy-id as the best option here. I'll go with that.
upvoted 0 times
...
Felix
4 months ago
Ah, I remember this from the lab exercises we did. The tool that's most suitable for uploading a public key to remote servers is ssh-copy-id. It's designed specifically for that purpose, so I'm going with option B.
upvoted 0 times
...
Margret
4 months ago
Hmm, I'm a bit unsure about this one. I know we covered public key authentication in class, but I can't quite remember the specific tool used for uploading the key. I'll have to think this through carefully.
upvoted 0 times
...
Arthur
5 months ago
This looks like a straightforward question about the best tool to use for uploading a public key to remote servers. I'm pretty confident I know the answer, but I'll double-check the options just to be sure.
upvoted 0 times
...
Lorrie
6 months ago
Haha, I bet the guy who wrote this question uses a flip phone. B) ssh-copy-id is the only logical choice here!
upvoted 0 times
Maira
5 months ago
D) ssh-keyscan is definitely not the right choice here, B) ssh-copy-id is the best option.
upvoted 0 times
...
Vallie
5 months ago
I think ssh-agent could also work, but B) ssh-copy-id is the safest bet.
upvoted 0 times
...
Carman
5 months ago
Yeah, scp would work too, but B) ssh-copy-id is more efficient.
upvoted 0 times
...
Colene
5 months ago
I agree, B) ssh-copy-id is definitely the way to go.
upvoted 0 times
...
...
Lorean
7 months ago
I believe ssh-copy-id is the most suitable option because it specifically copies the public key to the remote server.
upvoted 0 times
...
Kimberely
7 months ago
I'm not sure, but I think A) scp could also work for uploading the key.
upvoted 0 times
...
Antione
7 months ago
Definitely B) ssh-copy-id. It's the tool that was literally made for this task. Why complicate things, am I right?
upvoted 0 times
Sheridan
5 months ago
I always use ssh-copy-id for that task, it's so convenient.
upvoted 0 times
...
Johnetta
5 months ago
I agree, ssh-copy-id is the easiest way to upload the public key.
upvoted 0 times
...
...
Azzie
8 months ago
I agree with Nelida, ssh-copy-id is the best tool for uploading the key.
upvoted 0 times
...
Fernanda
8 months ago
B) ssh-copy-id is the way to go! It's like a one-stop-shop for uploading your key to remote servers. Easy peasy!
upvoted 0 times
Mitzie
7 months ago
C: I agree, ssh-copy-id is definitely the way to go for uploading keys.
upvoted 0 times
...
Rolland
7 months ago
B: ssh-copy-id is much easier and faster to use for that!
upvoted 0 times
...
Benton
7 months ago
A: I always use scp to upload my public key.
upvoted 0 times
...
...
Nelida
8 months ago
I think the answer is B) ssh-copy-id.
upvoted 0 times
...

Save Cancel