I created a new user with no shell access like this:
useradd -g www -d /www/user01 -p ****** -s /sbin/nologin user01
Then in my
sshd_config I add those lines:
AllowUsers user01 user02 manager Subsystem sftp internal-sftp Match User user01 ChrootDirectory /www/user01 PasswordAuthentication yes ForceCommand internal-sftp
The problem is I got Access denied every time I log in with putty, is there any misconfiguration?
It appears that the only user can ssh is the
root user, even adding the new user to