OpenSSH PATCH: OpenCommand and CloseCommand

Clifford Wolf clifford at clifford.at
Fri Aug 27 00:32:19 EST 2004


On Thu, Aug 26, 2004 at 09:05:50AM -0500, Ben Lindstrom wrote:
> > the attached patch adds support for the keywords "OpenCommand" and
> > "CloseCommand" to ssh_config. They are commands which are executed before
> > the connection is established (or ProxyCommand started) and after the
> > connection has been closed (or ProxyCommand ended).
> >
> > this is usefull for stuff like portknocking or (that's what I wrote the
> > patch for) talking with trapdoor2 (http://oss.linbit.com/trapdoor2/).
> 
> The ProxyCommand should run for the length of the ssh session.  Why can't
> you implement it fully using that?  Seems to make more sense.

Running the "to-do-before-stuff", running netcat, running the "to-do-
afterwards-stuff" ? No, that's not nice. If the connection itself is just a
plain TCP session ssh should do it on it's own imo ..

yours,
 - clifford

-- 
#!/usr/bin/perl
$p="1"x1002;for$c(2..1000){if($p=~/^.{$c}0/){next;};printf"%3d\%s",
$c,++$x%14?" ":"\n";while($p=~s/^((.{$c})+)1/${1}0/){}}$_="lPSFZQ".
"SJNFTZBUZ<IUUQ:;;XXX.DMJGGPSE.BU;QSJNF;>\n";y:B-Zl;:a-x M/:;print;

GnuPG Fingerprint = B492 B326 89D2 AC1A 0F38  706E 3CD2 04B1 FA4A 0DD1




More information about the openssh-unix-dev mailing list