On Debian lenny openssh 5.1 is shipped. These new version allows some nice security configurations.
add to /etc/ssh/sshd_config:
Match User jonas
AllowTcpForwarding no
X11Forwarding no
ChrootDirectory /home
ForceCommand internal-sftp
This will chroot the user jonas to /home. The user jonas could only use sftp, no interactive shell is permitted. Also the user could not run
ssh foo@bar 'cat /proc/cpu'.
Warning: The ChrootDirectory have to be root owned!
For all WinSCP users:
-> disable SCP-Callback
For all Linux sftp users:
-> sftp -s /usr/lib/openssh/sftp-server foo@bar.com