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?

link|improve this question

71% accept rate
The "Match User..." line is where? sshd_config? please clarify. – Nils Sep 13 '11 at 20:50
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.