Check port is open over some time

for x in {0..50};do nmap -sT -p 22  134.213.31.84 | grep ssh;done

This works with or without sleep

for x in {0..50};do nmap -sT -p 22  134.213.31.84 | grep ssh; sleep 1; done

Thanks to my colleague Marcin for this.

Leave a Reply

Your email address will not be published. Required fields are marked *