sshd -p option vs ListenAddress
Chris Lightfoot
chris at ex-parrot.com
Thu Dec 15 03:41:48 EST 2005
On Wed, Dec 14, 2005 at 02:25:15PM +0100, Peter Stuge wrote:
> On Wed, Dec 14, 2005 at 12:48:49PM +0000, Chris Lightfoot wrote:
> > > Two different options (Port and ListenAddress) that control the same
> > > thing are bound to be at least a little bit confusing.
> > >
> > > Although sshd_config(5) is somewhat helpful, it doesn't clearly say
> > > that ListenAddress has priority over Port, at least with a
> > > ListenAddress on host 0.
> >
> > No -- it's in the case where all ListenAddress directives
> > specify a port, rather than where all specify host = 0.
>
> Quite right, of course.
>
> Is this a bug in code or documentation?
Well, if we treat it as a bug in documentation, it's
easier to fix :-)
That said, it'd be preferable to fix it in the code, since
that'd make the command-line more useful. One option
(still a bit confusing, but closer to the internal data
model) would be to have an analogous -a option to specify
a ListenAddress, replacing any already-defined
ListenAddress in the same way that -p replaces any
already-defined Port.
Thoughts? I can do a patch for this if that'd be useful
(though not right now).
--
``I believe I am the only living man to deliberately
place his hands in the mouth of an attacking cougar.'' (Clarence Hall)
More information about the openssh-unix-dev
mailing list