nerdexam
CompTIACompTIA

XK0-005 · Question #1589

XK0-005 Question #1589: Real Exam Question with Answer & Explanation

The correct answer is B: sshd is running on a non-standard port.. {"question_number": 1, "question": "A user is unable to remotely log on to a server using the server name server1 and port 22.", "correct_answer": "B", "explanation": "Port 22 is the default SSH port. If the user is explicitly targeting port 22 and the connection fails, but the S

Troubleshooting

Question

A user is unable to remotely log on to a server using the server name server1 and port 22. The Linux engineer troubleshoots the issue and gathers the following information: Which of the following is most likely causing the issue?

Options

  • Aserver1 is not in the DNS.
  • Bsshd is running on a non-standard port.
  • Csshd is not an active service.
  • Dserver1 is using an incorrect IP address.

Explanation

{"question_number": 1, "question": "A user is unable to remotely log on to a server using the server name server1 and port 22.", "correct_answer": "B", "explanation": "Port 22 is the default SSH port. If the user is explicitly targeting port 22 and the connection fails, but the SSH daemon (sshd) is actually running on a non-standard port (e.g., 2222), the connection attempt to port 22 would be refused. This matches the scenario where sshd is active but unreachable on the expected port. If sshd were not running at all (C), the error would typically be a connection refused on any port. If DNS were the issue (A), the hostname wouldn't resolve at all. An incorrect IP (D) would result in the DNS name resolving to a wrong or unreachable host, but the key clue here is the port 22 failure specifically pointing to a port mismatch.", "generated_by": "claude-sonnet", "llm_judge_score": 4}

Topics

#SSH#Troubleshooting#Networking#Linux Services

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions