[PATCH] Allow "ProxyCommand none" in ssh_config

Thomas Binder binder at arago.de
Tue Oct 1 20:39:12 EST 2002


Hi!

On Mon, Sep 30, 2002 at 04:05:14PM -0500, Ben Lindstrom wrote:
> Ugh..I was expecting something closer to where all the argument processing
> happens.
> 
> Like below (don't 'whinge'  I have not even compiled it.  Just an
> example).

This way it won't work - actually, that's what I tried first
without success :)

Following OpenSSH's way of option parsing, you would have to have
the following in your ssh_config (or ~/.ssh/config):

Host does-not-need-proxy
	ProxyCommand none

Host *
	ProxyCommand /some/command

Thus, checking for "none" directly when the option is processed
wouldn't help, as the last ProxyCommand in the config file "wins".
You have to check for "none" after parsing of the config file has
finished.


Ciao

Thomas



More information about the openssh-unix-dev mailing list