Now I used this command to create another user like www-data for using SFTP.
adduser --home /var/www/path/to/dir --shell /bin/false --ingroup www-data devuser
I got home directory: “/var/www/path/to/dir” but can I restrict the user from going outside this directory?