Skip to content

Instantly share code, notes, and snippets.

@jkullick
Created September 8, 2016 12:47
Show Gist options
  • Save jkullick/e65378db6cb672eef90e76f6970a2aeb to your computer and use it in GitHub Desktop.
Save jkullick/e65378db6cb672eef90e76f6970a2aeb to your computer and use it in GitHub Desktop.
Open Port Knock Guarded SSH Port with Netcat
for PORT in $PORT1 $PORT2 $PORT3; do nc -vz $SSH_HOST $PORT; done; ssh $SSH_USER@SSH_HOST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment