New sftp connection

Dear All ,

I have a openssh 4.3p2 , but i need to configure sftp for a user which is present in the server.

This user has to see only the specific directory not all.

I tried to do the changes in sshd_config for openssh 4.9p1 , but for openssh 4.3p2 how to do it.

Any one pl help.

Rgds
rj

The "chroot" facility wasn't included with Openssh until 4.9p1. Prior to that version of Openssh, you had to build a chroot jail manually. There are a number of steps involved to get a chroot environment configured, however, it may be easier to change your configuration or use a 3rd party tool.

Upgrading your existing version of Openssh to at least 4.9p1 would definitely simply the matter. Alternatively, there are other pieces of software that can allow sftp access to a chrooted directory. I believe one such product is sftponly.