Site icon BitBook

Find Active SSH Servers on a Subnet

This example lists out the IPs that are on the SSH port (22) on a particular subnet.

List out IPs (only) of open ssh ports on a subnet

nmap -PN -p 22 --open -oG - 10.1.0.0/16 | awk '$NF~/ssh/{print $2}'
Exit mobile version