XK0-005 · Question #568
XK0-005 Question #568: Real Exam Question with Answer & Explanation
The correct answer is D: ssh-copy-id user@server. The command ssh-copy-id user@server will allow the user to upload the public key to a remote server and enable passwordless login. The ssh-copy-id command is a tool for copying the public key to a remote server and appending it to the authorized_keys file, which is used for publi
Question
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?
Options
- Ascp ~/.ssh/id_rsa user@server:~/
- Brsync ~ /.ssh/ user@server:~/
- Cssh-add user server
- Dssh-copy-id user@server
Explanation
The command ssh-copy-id user@server will allow the user to upload the public key to a remote server and enable passwordless login. The ssh-copy-id command is a tool for copying the public key to a remote server and appending it to the authorized_keys file, which is used for public key authentication. The command will also set the appropriate permissions on the remote server to ensure the security of the key. The command ssh-copy-id user@server will copy the public key of the user to the server and allow the user to log in without a password.
Topics
Community Discussion
No community discussion yet for this question.