These instructions are faulty or obsolete, I think. They
are five years old, and very rough, and prone to break over minor changes in the login system.
The link someone replied to it with looks more promising.
sftp-only chroot jail. It also says openssh v5 and newer supports chroot natively, something I didn't know.