K
K
krll-k2014-07-10 11:33:58
linux
krll-k, 2014-07-10 11:33:58

How to use nmap to scan the local network for open 22 ports?

We have an office, we have a local area network. I connected Rasberry Pi to it, and I want to connect to it via ssh. Before connecting, you need to know the ip address of the device. I decided to try the nmap network scanner, I wrote the command nmap -sP 10.116.1.0/24 :

[email protected]:~$ nmap -sP 10.116.1.0/24

Starting Nmap 5.21 ( http://nmap.org ) at 2014-07-10 12:27 MSK
Nmap scan report for 10.116.1.1
Host is up (0.00056s latency).
Nmap scan report for 10.116.1.33
Host is up (0.00045s latency).
Nmap scan report for 10.116.1.36
Host is up (0.00067s latency).
Nmap scan report for 10.116.1.38
Host is up (0.00062s latency).
Nmap scan report for 10.116.1.39
Host is up (0.0030s latency).
Nmap scan report for 10.116.1.57
Host is up (0.00039s latency).
Nmap scan report for 10.116.1.59
Host is up (0.00053s latency).
Nmap scan report for 10.116.1.65
Host is up (0.00074s latency).
Nmap scan report for 10.116.1.68
Host is up (0.00046s latency).
Nmap scan report for 10.116.1.70
Host is up (0.00041s latency).
Nmap scan report for 10.116.1.72
Host is up (0.00038s latency).
Nmap scan report for 10.116.1.97
Host is up (0.00039s latency).
Nmap scan report for 10.116.1.129
Host is up (0.00031s latency).
Nmap scan report for 10.116.1.135
Host is up (0.00040s latency).
Nmap scan report for 10.116.1.136
Host is up (0.00034s latency).
Nmap scan report for 10.116.1.140
Host is up (0.00050s latency).
Nmap scan report for 10.116.1.151
Host is up (0.00047s latency).
Nmap scan report for 10.116.1.154
Host is up (0.00034s latency).
Nmap scan report for 10.116.1.161
Host is up (0.00044s latency).
Nmap scan report for 10.116.1.166
Host is up (0.00063s latency).
Nmap scan report for 10.116.1.193
Host is up (0.00033s latency).
Nmap done: 256 IP addresses (21 hosts up) scanned in 2.76 seconds

I tried to configure the command to check for open ports, but failed. How to use nmap to scan the local network for open 22 ports?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2014-07-10
@krll-k

nmap 10.116.1.0/24 -p22

D
darkrain, 2014-07-10
@darkrain

And it’s even better to do statics for such things

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question