XK0-005 · Question #675
XK0-005 Question #675: Real Exam Question with Answer & Explanation
The correct answer is C: netstat. {"question_number": 10, "question": "Verify whether SSHD is listening after users report 'connection refused' errors.", "correct_answer": "C", "explanation": "'netstat' (network statistics) displays active network connections, listening ports, and associated processes. Running 'n
Question
A Linux administrator is troubleshooting an SSHD issue on a server. Users are receiving error messages stating the connection is refused. Which of the following commands should be used to verify whether the service is listening?
Options
- Anslookup
- Broute
- Cnetstat
- Difconfig
Explanation
{"question_number": 10, "question": "Verify whether SSHD is listening after users report 'connection refused' errors.", "correct_answer": "C", "explanation": "'netstat' (network statistics) displays active network connections, listening ports, and associated processes. Running 'netstat -tlnp' shows TCP listening ports and the process bound to each-allowing the administrator to confirm whether sshd is listening on port 22. If port 22 does not appear in the output, the service is not running or not bound correctly. 'nslookup' performs DNS queries and cannot show listening ports. 'route' displays the kernel routing table. 'ifconfig' shows network interface configuration. None of these alternatives reveal which ports are actively listening.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.