On Thu, Nov 30, 2017 at 09:00:26PM -0600, Edgar Pettijohn wrote:
> While playing with sftp-server I noticed that sshd_config.5 claims there
> are no Subsystems enabled by default. I could be wrong, but my
> sshd_config had sftp-server enabled by default.
> 
> --- sshd_config.5.orig  Thu Nov 30 20:50:17 2017
> +++ sshd_config.5       Thu Nov 30 20:53:25 2017
> @@ -1416,8 +1416,6 @@
>  This may simplify configurations using
>  .Cm ChrootDirectory
>  to force a different filesystem root on clients.
> -.Pp
> -By default no subsystems are defined.
>  .It Cm SyslogFacility
>  Gives the facility code that is used when logging messages from
>  .Xr sshd 8 .
> 
> 
> It was weird though because /etc/ssh/sshd_config shows the following:
> 
> # override default of no subsystems
> Subsystem       sftp    /usr/libexec/sftp-server
> 
> I was going to also provide a patch with the sftp-server line commented
> out, but couldn't find it in /usr/src and while I'm certain I didn't add
> the line myself. Its possible it perhaps was the default and has been
> removed and I didn't update the file correctly at some point. Either
> way. I'll leave it to the professionals.
> 
> Thanks
> 

morning.

my understanding is that the docs here document what the software does
by default. the config file shipped with openbsd overrides that, as
documented by the config file itself, but we document the default
without the config file.

this has caused some confusion in the past, but if you search the
archives you'll probably find the reasoning behind this.

jmc

Reply via email to