OpenSSH PATCH: OpenCommand and CloseCommand

Clifford Wolf clifford at clifford.at
Thu Aug 26 22:59:28 EST 2004


Hi Damien,

On Thu, Aug 26, 2004 at 10:34:58PM +1000, Damien Miller 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).
> 
> IMO This is exactly the sort of thing that should be implemented using
> a wrapper script and not in ssh.

But that would mean to implement the matching for the target host twice
(once in the wrapper script and once in ssh's ssh_config parsing) and
passing -S all the time when calling scp. This would add much
complexiticity to the side of the end user.

You could also argue that ProxyCommand could be implemented using a local
running service (can be even implemented using inetd without any scripting)
and not by ssh directly. It's simply much easier for the end user with the
ProxyCommand option..

yours,
 - clifford

-- 
+++>+>++++++[<+++++++>-]<..>++>++++++[<+++++>-]<.>>++++++[<+++++++++++>-]<.
>++>>++++[<++++[<+++++++>-]>-]<<.>+>>++++[<++++[<++++++>-]>-]<<.++++++++.<-
---.>---.<<<<-.>>>>---.<---.<<.<+..>.>>---.>>++++>>++++[<++++[<+++++++>-]>-
]<<..----.<<<--------.<<++++..>>>>>+++++++...<<<<<-.>>>>.<++++.---.>+++..<+
+++++.+++.>--.<<<<.>>>>---.<++.<<<+.>>>>+.++++.---.<----.>>--.<<<<<.>.<----
..>.>+++++++++.>>>>>>++++[<++++[<+++++>-]>-]<<.+++++.<<<<<<+.>.>.>-.--.+++.
>++++++.+++.-------.<++.<<<.>.>>>.>-.<--.<<<<++..>.<---..>>>>>>>++++++++++.

Life is not fair, but the root password helps!




More information about the openssh-unix-dev mailing list