Scponly is used for chroot to limit server access for SSH and SFTP users. Unfortunately, the Debian package for scponly does not work with Debian 5.0.
If you upgraded from Debian 4 to Debian 5 and are using scponly, you may notice that the clients are unable to connect. Possible error messages include:
- “failed WinSCP compatibility mode” error message
- WinSCP closes unexpectedly after authenticating
- Connection failure after successful authentication
- Client logs two attempts to connect to the /home/username home directory before failing
The fix is to remove scponly package in Debian and install a newer version from source code. Download the scponly source at:
http://sublimation.org/scponly/wiki/index.php/Main_Page
I found a great tutorial on installing ScpOnly from the source code in Debian:
http://rcaguilar.wordpress.com/2009/11/24/chrooted-scponly-on-debian/
