New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA XK0-005 Exam - 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:

0/2000 characters
Edelmira
3 months ago
Yeah, netstat is the one you want here!
upvoted 0 times
...
Serina
3 months ago
Wait, nslookup? That doesn't sound right...
upvoted 0 times
...
Valentin
3 months ago
I thought ifconfig was for network interfaces, not services?
upvoted 0 times
...
Marylin
4 months ago
Definitely C, that's the go-to command!
upvoted 0 times
...
Lyda
4 months ago
Pretty sure it's netstat for checking listening services.
upvoted 0 times
...
Lisandra
4 months ago
I think ifconfig is more about network interfaces, so it probably isn't the right choice for checking the SSHD service.
upvoted 0 times
...
Zana
4 months ago
I feel like nslookup is more for DNS issues, but I can't recall exactly what route does in this context.
upvoted 0 times
...
Kerry
4 months ago
I remember practicing with netstat for checking open ports, so that might be the answer here.
upvoted 0 times
...
Junita
5 months ago
I think netstat is the right command to check if SSHD is listening, but I'm not completely sure.
upvoted 0 times
...
Stefanie
5 months ago
Okay, let me think this through. The question is asking about verifying if the SSHD service is listening, so I'm pretty sure the answer is C - netstat. That's the go-to command for checking network services and ports.
upvoted 0 times
...
Jose
5 months ago
Ugh, I'm not sure about this one. Is it maybe B - route? I know that can show network information, but I'm not totally confident that's the right answer here.
upvoted 0 times
...
Leonora
5 months ago
Hmm, this seems pretty straightforward. I think the answer is C - netstat. That's the command I'd use to check if the SSHD service is listening on the server.
upvoted 0 times
...
Mary
5 months ago
Netstat, that's the one! I remember using that before to troubleshoot network issues. Yeah, C is definitely the right choice here.
upvoted 0 times
...
Georgene
5 months ago
I feel like I've seen 4999 somewhere, but it doesn't ring a bell for this specific scenario.
upvoted 0 times
...
Shawna
1 year ago
Ifconfig? What is this, the 90s? We use ip commands these days, my friend.
upvoted 0 times
Brandee
1 year ago
User 4: Good point, I'll give that a try. Thanks for the suggestion!
upvoted 0 times
...
Kip
1 year ago
User 3: Maybe you should try using the ip command instead of ifconfig to troubleshoot further.
upvoted 0 times
...
Becky
1 year ago
User 2: Yeah, I did. It seems like the service is not listening on the expected port.
upvoted 0 times
...
Rosio
1 year ago
User 1: Have you tried using the netstat command to check if SSHD is listening?
upvoted 0 times
...
...
Heike
1 year ago
Haha, nslookup? Really? That's for DNS, not checking if a service is running. Come on, people!
upvoted 0 times
...
Karina
1 year 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
1 year ago
I was just about to say the same thing! Netstat is the go-to tool for network troubleshooting like this.
upvoted 0 times
Charlene
1 year ago
Yes, netstat will show you if the service is listening on the server.
upvoted 0 times
...
Stephania
1 year ago
I agree, netstat is the way to go for troubleshooting SSHD connection issues.
upvoted 0 times
...
Cora
1 year ago
Netstat is definitely the command you need to use to check if the service is listening.
upvoted 0 times
...
...
Tyisha
1 year 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
1 year ago
Netstat is a lifesaver when it comes to checking for listening services on a server.
upvoted 0 times
...
Lyla
1 year ago
I always use netstat to troubleshoot SSHD issues, it's very reliable.
upvoted 0 times
...
Rima
1 year ago
I agree, netstat is the best option to check if the service is listening.
upvoted 0 times
...
...
Vilma
1 year 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
1 year ago
Make sure to check the output of netstat to see if SSHD is listening on the server.
upvoted 0 times
...
Dianne
1 year ago
I've used netstat before to troubleshoot similar issues.
upvoted 0 times
...
Tula
1 year ago
Yes, netstat will show if the service is listening on the server.
upvoted 0 times
...
Quentin
1 year ago
I think netstat is the right command to use.
upvoted 0 times
...
...
Elke
1 year ago
I'm not sure, but I think C) netstat makes sense. It checks the network connections.
upvoted 0 times
...
Roxane
1 year ago
I agree, netstat is the way to go. It's like the swiss army knife of network troubleshooting tools.
upvoted 0 times
Dierdre
1 year ago
Netstat is definitely the go-to command for checking network services.
upvoted 0 times
...
Sharen
1 year ago
No, I haven't. I'll give that a try.
upvoted 0 times
...
Telma
1 year ago
Have you tried using netstat to check if the service is listening?
upvoted 0 times
...
...
Elli
1 year ago
I agree with Marg. Netstat will show if the service is listening on the server.
upvoted 0 times
...
Marg
1 year ago
I think the answer is C) netstat.
upvoted 0 times
...
Carlton
1 year 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
1 year ago
No, I haven't. I'll give that a try. Thanks for the suggestion!
upvoted 0 times
...
Ilene
1 year ago
Have you tried using netstat to check if the service is listening?
upvoted 0 times
...
...

Save Cancel