Are my ports opened? [duplicate]

Solution 1:

Just use nmap from another computer - this will scan and show all the open ports on your machine, as well as hardware and software information it is possible to get from it.

Just run:

sudo nmap -A -O IP_ADDRESS

or for more informative output:

sudo nmap -A -O -vvv IP_ADDRESS

You may need to install it with sudo apt-get install nmap first. atleast, that is the command for an Ubuntu/Debian machine.


For example, if I run this:

sudo nmap -A -O -vvv 192.168.1.6

it shows:

Starting Nmap 6.40 ( http://nmap.org ) at 2013-12-22 16:32 GMT
Nmap scan report for 192.168.1.6
Host is up (0.00037s latency).
Not shown: 991 filtered ports
PORT     STATE  SERVICE      VERSION
21/tcp   closed ftp
22/tcp   open   ssh  
2049/tcp closed nfs
MAC Address: **:**:**:**:**:** (MANUFACTURER-OF-NETWORKING-HARDWARE)
Device type: general purpose
Running: Linux 2.6.X
OS CPE: cpe:/o:linux:linux_kernel:2.6
OS details: Linux 2.6.9 - 2.6.27
Network Distance: 1 hop

TRACEROUTE
HOP RTT     ADDRESS
1   0.37 ms 192.168.1.6


OS and Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 13.24 seconds

This shows that it currently only has the ssh port open to access, on port 22, with the ftp and nfs ports available, but closed, on 21 and 2049 ports.

Yes, I have edited secret info out of the above output - including MAC Address: **:**:**:**:**:** (MANUFACTURER-OF-NETWORKING-HARDWARE)

Hope this helps smiley