SSH: Automatic Port Knocking Cheat Sheet

Host myserver
   User myuser
   Host myserver.com
   ProxyCommand bash -c '/usr/bin/knock %h 1000 2000 3000 4000; sleep 1; exec /bin/nc %h %p'

Leave a Reply

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