I am using RHEL6 and I set up an sftp server through sshd. Here is the relevant sshd config:
Match Group sftpusers ChrootDirectory /sftp/%u ForceCommand internal-sftp X11Forwarding no AllowTcpForwarding no
I have a user
sftpuser1 which is part of the group
sftpusers and is assigned a home directory of
/sftp/sftpuser1/home. However, when I login to sftp with this user, I get to
/sftp/sftpuser1, and not the home directory.
How can I configure this user to be forced into the home directory upon connecting to the sftp server?