SFTP
 

#Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp internal-sftp
UsePAM yes

Match User username
    ChrootDirectory /home/username/files
    ForceCommand internal-sftp
    AllowTCPForwarding no
    X11Forwarding no
    AuthenticationMethods password

AuthenticationMethods publickey,password