Question 1170
A RHEL 10 operator configures SSH access to node.example.test as ops. The immediate goal is to install the existing local public key on the remote user account. Which command is appropriate?
Explanation
Correct Answer
ssh-copy-id adds the selected public key to the remote account authorized_keys list That is the required public-key authentication step.
Incorrect Answers
ssh-keygen creates the local private key and matching public key, subject to host cryptographic policy It is a different client authentication or host-key operation. The stated task is to install the existing local public key on the remote user account. Instead, `ssh-copy-id ops@node.example.test` is the relevant alternative because ssh-copy-id adds the selected public key to the remote account authorized_keys list That is the required public-key authentication step.
PreferredAuthentications=publickey requests public key authentication for the client test It is a different client authentication or host-key operation. The stated task is to install the existing local public key on the remote user account. Instead, `ssh-copy-id ops@node.example.test` is the relevant alternative because ssh-copy-id adds the selected public key to the remote account authorized_keys list That is the required public-key authentication step.
ssh-keygen -lf prints fingerprint details for an existing public key file It is a different client authentication or host-key operation. The stated task is to install the existing local public key on the remote user account. Instead, `ssh-copy-id ops@node.example.test` is the relevant alternative because ssh-copy-id adds the selected public key to the remote account authorized_keys list That is the required public-key authentication step.






Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests