multiple Host entries in ssh_config

Vincent.McIntyre at csiro.au Vincent.McIntyre at csiro.au
Wed Sep 28 18:05:30 EST 2005


> > to clarify, you're saying keywords are first-match-wins-all ?
>
> I don't see a difference between that and "first match".

It's the same thing just a bit more verbose. I like a bit of
redundancy, this "English" protocol thing can be rather ambiguous...

> Do you mean that, given the following config:
>
> Host foo
> 	HostKeyAlias bar
>
> Host *
> 	CheckHostIP no
>
> what options are active for "ssh foo" ?  In this example, both the
> HostKeyAlias and CheckHostIP would apply to "ssh foo".

Yes, that's the idea. It's confusing at first, that for a given
destination some elements of the configuration for that session will
come from one Host "statement group" and some will come from others.
It's actually a good design, once you get your head around it.
But difficult to express succinctly, the patch I sent could also
use a tweak to capture this better.

At the risk of sidetracking you... I don't know if this is a lot of
work or exists already, but it might be useful to have an option to
ssh like --config-summary or --show-config that prints the accumulated
configuration from all the inputs (commandline, $HOME/.ssh/config,
/etc/ssh/ssh_config, compilation) and exits. "-O" looks to be free...


> Posting here is usually enough for small things like this (provided we
> don't get sidetracked :-).

ok, thanks.

Cheers
Vince




More information about the openssh-unix-dev mailing list