The following is at the end of my "/etc/ssh/sshd_config"...
Subsystem sftp internal-sftp
Match Group sftponly
I have a group called sftponly with gid 562.
I've added userabc to this group and the following is his entry in /etc/passwd...
userabc:x:527:562:User description goes here:/home/userabc:/bin/fa
I've restarted sshd.
"/home" and "/home/userabc" is owned by root:root and permissions for both folder is 755/
Below is the output when I try to SFTP in to the server using userabc...
Status: Connecting to xxx.xxx.xxx.xxx...
Response: fzSftp started
Command: open "firstname.lastname@example.org" 22
Command: Pass: ********
Status: Connected to xxx.xxx.xxx.xxx
Status: Retrieving directory listing...
Response: Current directory is: "/"
Status: Listing directory /
Error: Unable to open .: permission denied
May I know, what am I missing here? Thanks!