SFTP Chroot Ubuntu 10.10

Solution 1:

I think you just have to specify ChrootDirectory /home it will substitute to /home/bob automagically. Otherwise it is looking into /home/bob/bob

Edit: Also make sure that the chroot directory is owned by root and is not group writable. If you need to have a writable directory then you need to create a subfolder

chown root /home/bob
chmod go-w /home/bob
mkdir /home/bob/writeable
chown bob:sftponly /home/bob/writeable
chmod ug+rwX /home/bob/writeable