I am trying to set up a new user on my remote server.
I have created a new user with sudo access.
adduser username usermod -aG sudo username
Then in the
/etc/ssh/sshd_config file I have allowed that user ssh access.
AllowUsers username root
and I restarted ssh.
service sshd reload
Finally I logged in as the user and copied my public ssh key into the
But I still get
Permission denied (publickey) when I try to ssh as that user.
I am able to ssh as the root user with no problems.
Am I missing something?