I set up fwknop to a server (managed by ansible).
I have set up .ssh/config
to automate port knocking.
When I run (ansible) scripts, they will connect to the server multiple times, increasing execute speed significantly.
How can I achive that fwknop is not invoked just when it is needed?
I can automate it with a small wrapper script which checks the availability of the host and knoks when necessary but I cannot believe there is no standard switch somewhere for this scenario.
.ssh/config
excerpt:
Match host my.remote.host exec "fwknop -v -n %h"
0 Answers