nerdexam
CompTIA

XK0-005 · Question #675

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…

The correct answer is C. netstat. '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…

Troubleshooting

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

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    3% (1)
  • C
    86% (25)
  • D
    3% (1)

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.

Topics

#Linux troubleshooting#SSHD#netstat#Network services

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice