vi /etc/ssh/sshd_config
#Subsystem sftp /usr/libexec/openssh/sftp-server
Subsystem sftp internal-sftp
Match User someuser
ChrootDirectory /var/www/someuser
ForceCommand internal-sftp
X11Forwarding no
AllowTcpForwarding no
chown root:root /var/www/someuser
chmod 755 /var/www/someuser
usermod -s “/usr/libexec/openssh/sftp-server” someuser