Quick tool to test if ssh port is accessible using nc

for i in {1..2000} ;do  if nc -z ec2-xxx-xxx-xxx-xxx.us-west-2.compute.amazonaws.com 22 ;then echo YEP ; else echo NOPE ; fi ; sleep 1 ; done

 

nJoy 😉

 

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.