$ nmap -sV localhost
Starting Nmap 5.21 ( http://nmap.org ) at 2014-08-06 00:10 BRT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00023s latency).
Not shown: 995 closed ports
PORT STATE SERVICE VERSION
22/tcp open ssh (protocol 2.0)
53/tcp open domain dnsmasq 2.59
139/tcp open netbios-ssn Samba smbd 3.X (workgroup: WORKGROUP)
445/tcp open netbios-ssn Samba smbd 3.X (workgroup: WORKGROUP)
631/tcp open ipp CUPS 1.5
1 service unrecognized despite returning data. If you know the
service/version, please submit the following fingerprint at
http://www.insecure.org/cgi-bin/servicefp-submit.cgi :
SF-Port22-TCP:V=5.21%I=7%D=8/6%Time=53E19C9D%P=i686-pc-linux-gnu%r(NULL,30
SF:,"SSH-2\.0-OpenSSH_5\.9p1\x20Trisquel_GNU/linux_6\.0-1\r\n");
Service detection performed. Please report any incorrect results at
http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 11.14 seconds