XK0-005 · Question #558
A junior administrator is trying to set up a passwordless SSH connection to one of the servers. The administrator follows the instructions and puts the key in the authorized_key file at the server…
The correct answer is B. mv .ssh/authorized_key .ssh/authorized_keys. The command mv .ssh/authorized_key .ssh/authorized_keys will resolve the issue and allow an SSH connection to be established without a password. The issue is caused by the incorrect file name of the authorized key file on the server. The file should be named authorized_keys…
Question
A junior administrator is trying to set up a passwordless SSH connection to one of the servers. The administrator follows the instructions and puts the key in the authorized_key file at the server, but the administrator is still asked to provide a password during the connection. Given the following output:
Which of the following commands would resolve the issue and allow an SSH connection to be established without a password?
Options
- Arestorecon -rv .ssh/authorized_key
- Bmv .ssh/authorized_key .ssh/authorized_keys
- Csystemctl restart sshd.service
- Dchmod 600 mv .ssh/authorized_key
How the community answered
(24 responses)- B88% (21)
- C8% (2)
- D4% (1)
Explanation
The command mv .ssh/authorized_key .ssh/authorized_keys will resolve the issue and allow an SSH connection to be established without a password. The issue is caused by the incorrect file name of the authorized key file on the server. The file should be named authorized_keys, not authorized_key. The mv command will rename the file and fix the issue.
Topics
Community Discussion
No community discussion yet for this question.