Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA Exam XK0-005 Topic 1 Question 40 Discussion

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

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?

Show Suggested Answer Hide Answer
Suggested Answer: C

netstat is a command-line tool that displays network connections, routing tables, and a number of network interface statistics. It can be used to check if the SSHD service is listening on its default port (usually port 22) or any other configured port.


Contribute your Thoughts:

Shawna
14 days ago
Ifconfig? What is this, the 90s? We use ip commands these days, my friend.
upvoted 0 times
...
Heike
18 days ago
Haha, nslookup? Really? That's for DNS, not checking if a service is running. Come on, people!
upvoted 0 times
...
Karina
19 days ago
Netstat all the way! You can even use it to see which process is using the port. Very handy for solving SSHD issues.
upvoted 0 times
...
Veta
20 days ago
I was just about to say the same thing! Netstat is the go-to tool for network troubleshooting like this.
upvoted 0 times
...
Tyisha
24 days ago
Netstat is definitely the way to go here. That's the classic command to check if a service is listening on a specific port.
upvoted 0 times
Genevieve
5 days ago
Netstat is a lifesaver when it comes to checking for listening services on a server.
upvoted 0 times
...
Lyla
6 days ago
I always use netstat to troubleshoot SSHD issues, it's very reliable.
upvoted 0 times
...
Rima
13 days ago
I agree, netstat is the best option to check if the service is listening.
upvoted 0 times
...
...
Vilma
1 months ago
Netstat is the answer, no doubt. Unless you're trying to find Nessie in Loch Ness, in which case you'd use nslookup.
upvoted 0 times
Kanisha
2 days ago
Make sure to check the output of netstat to see if SSHD is listening on the server.
upvoted 0 times
...
Dianne
4 days ago
I've used netstat before to troubleshoot similar issues.
upvoted 0 times
...
Tula
6 days ago
Yes, netstat will show if the service is listening on the server.
upvoted 0 times
...
Quentin
23 days ago
I think netstat is the right command to use.
upvoted 0 times
...
...
Elke
1 months ago
I'm not sure, but I think C) netstat makes sense. It checks the network connections.
upvoted 0 times
...
Roxane
1 months ago
I agree, netstat is the way to go. It's like the swiss army knife of network troubleshooting tools.
upvoted 0 times
Dierdre
8 days ago
Netstat is definitely the go-to command for checking network services.
upvoted 0 times
...
Sharen
14 days ago
No, I haven't. I'll give that a try.
upvoted 0 times
...
Telma
15 days ago
Have you tried using netstat to check if the service is listening?
upvoted 0 times
...
...
Elli
1 months ago
I agree with Marg. Netstat will show if the service is listening on the server.
upvoted 0 times
...
Marg
2 months ago
I think the answer is C) netstat.
upvoted 0 times
...
Carlton
2 months ago
Netstat is definitely the way to go here. It's the classic tool for checking network connections and listening services.
upvoted 0 times
Milly
28 days ago
No, I haven't. I'll give that a try. Thanks for the suggestion!
upvoted 0 times
...
Ilene
1 months ago
Have you tried using netstat to check if the service is listening?
upvoted 0 times
...
...

Save Cancel