XK0-005 · Question #372
Which of the following commands should a system administrator use to configure a passwordless login to remote system? (Select TWO.)
The correct answer is B. Ssh-agent C. Ssh-copy-id. To enable passwordless SSH login, ssh-copy-id transfers the public key to the remote host, and ssh-agent facilitates the secure use of private keys without repeated passphrase entry.
Question
Which of the following commands should a system administrator use to configure a passwordless login to remote system? (Select TWO.)
Options
- ACp
- BSsh-agent
- CSsh-copy-id
- DSsh-keygen
- ESsh-add
- Fopenssl
How the community answered
(25 responses)- A16% (4)
- B72% (18)
- E8% (2)
- F4% (1)
Why each option
To enable passwordless SSH login, `ssh-copy-id` transfers the public key to the remote host, and `ssh-agent` facilitates the secure use of private keys without repeated passphrase entry.
`cp` is a general file copying command but does not automate the specific process of setting up SSH keys for passwordless login on a remote system. D: `ssh-keygen` is used to *generate* the SSH key pair, but it does not directly *configure* the passwordless login on the remote system or manage the keys for convenience. E: `ssh-add` is used to add private keys to the `ssh-agent`, but `ssh-agent` itself (the program running in the background) is the primary component enabling the passphrase-less operation. F: `openssl` is a general-purpose cryptography toolkit and is not directly used for configuring passwordless SSH login in this context.
`ssh-agent` is a program that runs in the background to hold private keys, allowing users to use their SSH keys for authentication without re-entering the passphrase for each connection. C: `ssh-copy-id` is a utility that automates the process of copying local public keys to a remote host's `~/.ssh/authorized_keys` file, which is crucial for configuring passwordless login.
Concept tested: SSH key-based authentication configuration
Source: https://man7.org/linux/man-pages/man1/ssh-copy-id.1.html
Topics
Community Discussion
No community discussion yet for this question.