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

Reply via email to