Question 231 · 300 in bank
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?
Show answer
Answer: B
Explanation
B. mv .ssh/authorized_key .ssh/authorized_keys This changes the name of the file from authorized_key to authorized_keys, which is the conventional name for the file that contains authorized public keys for passwordless SSH connections. By convention, the ssh-keygen tool generates the authorized_keys file, and some SSH servers expect this exact name. Changing the name of the file to authorized_keys may resolve the issue and allow the passwordless connection to be established.
Source: Adapted from community discussion — linux_admin
