exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 72 discussion

Actual exam question from CompTIA's XK0-005
Question #: 72
Topic #: 1
[All XK0-005 Questions]

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?

  • A. restorecon -rv .ssh/authorized_key
  • B. mv .ssh/authorized_key .ssh/authorized_keys
  • C. systemctl restart sshd.service
  • D. chmod 600 mv .ssh/authorized_key
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Alizadeh
8 months, 3 weeks ago
Selected Answer: B
The correct answer is B. mv .ssh/authorized_key .ssh/authorized_keys
upvoted 1 times
...
linux_admin
1 year, 2 months ago
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.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago