[PATCH] LocalPreCommand: Support for executing command before ssh connection (like port knock before ssh)

Damien Miller djm at mindrot.org
Tue Dec 23 12:15:02 EST 2014


On Sun, 21 Dec 2014, Bart?omiej Korupczynski wrote:

> Hi guys,
> 
> I've made a patch adding LocalPreCommand to ssh_config. It mimics
> behaviour of LocalCommand, but is executed right before the connection
> is opened. This makes possible e.g. to integrate ssh with port
> knocking. It also removes "-oPermitLocalCommand=no" from scp allowing

This can be done using a shell script, shell alias, shell function or
other wrapper without touching ssh.

-d


More information about the openssh-unix-dev mailing list