#881594 openssh-sftp-server: sftp subsystem is installed in the wrong directory

Package:
openssh-sftp-server
Source:
openssh
Description:
secure shell (SSH) sftp server module, for SFTP access from remote machines
Submitter:
"Klaus-J. Wolf"
Date:
2017-11-13 13:57:08 UTC
Severity:
important
#881594#5
Date:
2017-11-13 10:05:01 UTC
From:
To:
openssh-sftp-server is installed in /usr/lib/openssh while openssh-server expects it in
/usr/lib/ssh. Consequentially, any client using sftp gets an EOF and closes "unexpectedly".

Workaround: cd /usr/lib; ln -s openssh ssh

#881594#10
Date:
2017-11-13 13:19:47 UTC
From:
To:
Err ... but it doesn't.  Here's the default configuration as shipped by
the openssh-server package:

  sshd_config:Subsystem   sftp    /usr/lib/openssh/sftp-server

Perhaps you modified your /etc/ssh/sshd_config and didn't notice?

#881594#15
Date:
2017-11-13 13:30:49 UTC
From:
To:
Thanks! Some old script seems to do the same change over and over - someone
had copied that piece of config somewhere. Since openssh is also known as
'ssh' to the Debian system, wouldn't it be a good idea to introduce a
compatibility link, since scripts couldn't determine the proper config line
by themselves...?

#881594#20
Date:
2017-11-13 13:54:18 UTC
From:
To:
I'm not sure it's sensible to introduce compatibility links for every
possible typoed version of a path.  sftp-server has never been installed
as /usr/lib/ssh/sftp-server in Debian; it was previously
/usr/lib/sftp-server, and I've kept a compatibility symlink for that for
over 12 years, but it's never been in /usr/lib/ssh/.

What is the old script in question at your site?