Starting Nmap 7.91 ( https://nmap.org ) at 2024-01-10 12:00 UTC
Nmap scan report for example.com (192.168.1.10)
Host is up (0.001s latency).
Not shown: 9999 closed ports
PORT STATE SERVICE
21/tcp open ftp
80/tcp open http
135/tcp open msrpc
139/tcp open netbios-ssn
443/tcp open https
2222/tcp open ssh
444/tcp open microsoft-ds
Nmap done: 1 IP address (1 host up) scanned in 0.23 seconds
Which of the following is the most likely reason for the connectivity issue?
Show answerHide answer
Correct answer: A The SSH service is running on a different port.
Explanation
Explanation:The Nmap output shows port 2222/tcp open ssh instead of the default SSH port 22. The tester is likely attempting to connect to port 22 (default SSH) and failing, assuming the service is missing or blocked. However, SSH is actively running on port 2222. The connectivity issue is simply that the tester is using the wrong port.
Why other options are incorrect
B. SSH service blocked by firewall – Nmap shows port 2222 as open, meaning no firewall is blocking it. If blocked, Nmap would show filtered or closed.
C. SSH requires certificate authentication – This affects authentication, not connectivity. The tester would still establish a TCP connection to the correct port.
D. SSH service is not active – Nmap confirms SSH is active and listening on port 2222.
References
CompTIA PenTest+ PT0-003 – Domain 2.2 (Network Scanning): "Interpret Nmap output to identify non-standard service ports."
Nmap documentation – open state means a service is actively listening on that port.
Common misconfiguration – SSH moved from port 22 to another port (e.g., 2222) for obscurity or to avoid automated scans.
