CompTIA
XK0-006 · Question #112
A systems administrator is configuring new Linux systems and needs to enable passwordless authentication between two of the servers. Which of the following commands should the administrator use?
The correct answer is A. ssh-keygen -t rsa && ssh-copy-id -i ~/.ssh/id_rsa.pub john@server2. This command generates an SSH key pair and securely copies the public key to the remote server, enabling passwordless authentication by allowing key-based SSH login between the
Security Best Practices
Question
A systems administrator is configuring new Linux systems and needs to enable passwordless authentication between two of the servers. Which of the following commands should the administrator use?
Options
- Assh-keygen -t rsa && ssh-copy-id -i ~/.ssh/id_rsa.pub john@server2
- Bssh-keyscan -t rsa && ssh-copy-id john@server2 -i ~/.ssh/key
- Cssh-agent -i rsa && ssh-copy-id ~/.ssh/key john@server2
- Dssh-add -t rsa && scp -rp ~/.ssh john@server2
How the community answered
(43 responses)- A88% (38)
- B2% (1)
- C2% (1)
- D7% (3)
Explanation
This command generates an SSH key pair and securely copies the public key to the remote server, enabling passwordless authentication by allowing key-based SSH login between the
Topics
#SSH key authentication#ssh-keygen#ssh-copy-id#passwordless login
Community Discussion
No community discussion yet for this question.