- 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
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
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?
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...?
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?