Currently setting up a Centos6.4 box and are wanting to jail sftp users upon login. I've been following the notes here http://www.thisisnotsupported.com/sftp-chrootjail-on-centos6. But I have one issue relating to the user home directory.
This tutorial lists the ChrootDirectory
as
ChrootDirectory /var/www/vhosts/%u
This uses the user name for the home directory. However, I have specified a different home directory for the user which I would like to use instead. When attempting a login the directory looked for is based on the user name and not the specified home directory.
I've searched the documentation for the relevant % key I should be using here but have come up blank.
Can anybody assist and suggest which key I should be using here?
Many thanks