I created a user on an Ubuntu 18.04 server with the aim of giving the user password authentication access. They are a member of the users group. I added the user's name after my name to this line in /etc/ssh/sshd_config
AllowUsers my_name their_name
I re-started the ssh server:
$ sudo systemctl restart ssh
but when I try to log in from Putty with the new user's name I get "access denied" and, of course, Putty locks up for a while. I'm not sure how long, but it gets longer each time I receive the access denied error, so this is a very time-consuming problem.
I get the same problem of access denied with FileZilla when attempting to log in as the new user to do basic SFTP.
What do I have to do give a user only the privileges they need to have access to their own home folder via Putty or FileZilla without giving them root privileges or making them part of the sudo group?