5

File/Directory permissions for SFTP user

view full story
linux-howto

http://serverfault.com – After using the SSH quite a lot on my 1.5 week old Debian 6 VPS, I wanted to start uploading files through SFTP. I already tried that earlier, but with the root account, which isn't possible with SSH anymore due to security changes. So I've made a separate user, let's call him sftpuser for now, who belongs to the group sftp. He got a special entry in the sshd_config: Match Group sftp ChrootDirectory /var/www ForceCommand internal-sftp PasswordAuthentication yes So, he is lucky and doesn't need a keyfile to connect, but he is limited to /var/www. Well, that works, I can login (HowTos)