I'm wanting to find computers with ssh open on my subnet but it shows all host that are up in the results and not just the ones that have open ports this is my command
nmap -PN -p 22 --open -oG - 192.168.*.* | awk '{print $2}' > sshopen.txt
Thanks