Scan IP range for a specific port with nmap Perform a scan with nmap on a specific IP range for machines listening on port 22 (SSH). nmap 192.168.1.0/24 -p 22 -oG - | grep open Other example(s): nmap -sV --open 192.168.1.0/24 -p22 | grep interesting -i Source(s) 1 2