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.)
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.
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
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.
This section is not available anymore. Please use the main Exam Page.XK0-005 Exam Questions
Log in to ExamTopics
Sign in:
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.
linux_admin
Highly Voted 12 months agolinux_admin
12 months agolinux_admin
12 months agoDeuteronomy
Most Recent 1 year agolizb7223
1 year ago