Lately I upgraded my SSH server to OpenSSH_5.9p1 and tried to setup chrooted SFTP/SSH. So far I managed to setup chrooted access only for SFTP using new feature of openssh5.9p1:
Match User testuser
ChrootDirectory /home/testuser
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
But I need to enable SSH access as well for the same user. I followed many articles,and with this one http://www.howtoforge.com/chroot_ssh_sftp_fedora7 I managed to connect via SSH. But chroot doesn't seem to work, I can still browse outside folders.
How can I get the chroot to work?