In some situation the path to the SFTP subsystem in sshd_config can be configured incorrectly by the build process. For example, if you do the following: ./configure make ./configure --prefix=/opt/ssh make sudo make install The installed sshd_config file will have Subsystem sftp /usr/libexec/sftp-server instead of Subsystem sftp /opt/ssh/libexec/sftp-server You can avoid this by issuing a make clean after the first make but this does seem like unexpected behaviour. The following patch resolves this. diff --git a/Makefile.in b/Makefile.in index 6762d573a..fac076b60 100644 --- a/Makefile.in +++ b/Makefile.in @@ -269,7 +269,7 @@ $(MANPAGES): $(MANPAGES_IN) $(FIXPATHSCMD) $${manpage} | $(FIXALGORITHMSCMD) > $@; \ fi -$(CONFIGFILES): $(CONFIGFILES_IN) +$(CONFIGFILES): $(CONFIGFILES_IN) Makefile conffile=`echo $@ | sed 's/.out$$//'`; \ $(FIXPATHSCMD) $(srcdir)/$${conffile} > $@
On Sat, 1 Mar 2025 at 08:31, Chris Rapier <rapier at psc.edu> wrote:> In some situation the path to the SFTP subsystem in sshd_config can be > configured incorrectly by the build process. >applied, thanks. -- Darren Tucker (dtucker at dtucker.net) GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860 37F4 9357 ECEF 11EA A6FA Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.