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

Bartłomiej Korupczynski klolik79 at gmail.com
Mon Dec 22 08:34:42 EST 2014


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
the same functionality to be used for file transfers.

Applies cleanly on vanilla OpenSSH 6.7p1.
http://software.klolik.org/patches/openssh+localprecommand.diff

Best regards,
Bartlomiej Korupczynski


More information about the openssh-unix-dev mailing list