- install nmap tool
root:/# apt install nmap
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libjemalloc1
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
libblas-common libblas3 liblinear3 liblua5.2-0 libpcap0.8 libxslt1.1
lua-lpeg ndiff python-bs4 python-chardet python-html5lib python-lxml
python-six
Suggested packages:
liblinear-tools liblinear-dev python-genshi python-lxml-dbg python-lxml-doc
The following NEW packages will be installed:
libblas-common libblas3 liblinear3 liblua5.2-0 libpcap0.8 libxslt1.1
lua-lpeg ndiff nmap python-bs4 python-chardet python-html5lib python-lxml
python-six
0 upgraded, 14 newly installed, 0 to remove and 162 not upgraded.
Need to get 258 kB/6,071 kB of archives.
After this operation, 25.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com xenial-security/main armhf libpcap0.8 armhf 1.7.4-2ubuntu0.1 [104 kB]
Progress: [ 98%] [##########################################################] 28-2.1ubuntu0.3 [129 kB]
Get:3 http://ports.ubuntu.com xenial-updates/main armhf lua-lpeg armhf 0.12.2-1ubuntu1 [24.6 kB]
Fetched 258 kB in 18s (14.2 kB/s)
- running namp tool
root:/# nmap 127.0.0.1
Starting Nmap 7.01 ( https://nmap.org ) at 2020-03-06 01:16 UTC
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00011s latency).
Not shown: 999 closed ports
PORT STATE SERVICE
22/tcp open ssh