ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 281 - XK0-005 discussion

Report
Export

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?

A.
scp
Answers
A.
scp
B.
ssh-copy-id
Answers
B.
ssh-copy-id
C.
ssh-agent
Answers
C.
ssh-agent
D.
ssh-keyscan
Answers
D.
ssh-keyscan
Suggested answer: B

Explanation:

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.

asked 02/10/2024
ENET SOLUTIONS LOGICOM
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first