exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 15 discussion

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

A new Linux systems administrator just generated a pair of SSH keys that should allow connection to the servers. Which of the following commands can be used to copy a key file to remote servers? (Choose two.)

  • A. wget
  • B. ssh-keygen
  • C. ssh-keyscan
  • D. ssh-copy-id
  • E. ftpd
  • F. scp
Show Suggested Answer Hide Answer
Suggested Answer: DF 🗳️

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
linux_admin
Highly Voted 12 months ago
D. ssh-copy-id F. scp The ssh-copy-id and scp commands can be used to copy an SSH key file to remote servers. The ssh-copy-id command is used to install the public key of an SSH key pair to the authorized_keys file of a remote server. This allows the user to log into the remote server without a password, using the private key of the key pair.
upvoted 7 times
linux_admin
12 months ago
For example: ssh-copy-id user@remote_server The scp command is used to securely copy files between systems over an SSH connection. The command can be used to copy an SSH key file to a remote server. For example: scp ~/.ssh/id_rsa.pub user@remote_server:/tmp/id_rsa.pub
upvoted 7 times
linux_admin
12 months ago
In this example, the public key of the SSH key pair (~/.ssh/id_rsa.pub) is copied to the remote server (remote_server) in the /tmp directory with the name id_rsa.pub. The administrator can then use the ssh-copy-id command to install the public key on the remote server.
upvoted 3 times
...
...
...
Deuteronomy
Most Recent 1 year ago
D and F are correct. ssh-keygen command is used to generate a pair of keys.
upvoted 1 times
...
lizb7223
1 year ago
BD https://linuxhint.com/copy_ssh_keys/
upvoted 2 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 ...