My root user can login using ssh but for some reason my newuser can't login using the same key. I'm using putty and these are the messages I got.
Using username 'newuser'. Server refused our key
Disconnected: No supported authentication methods available (server sent: publickey)
On my server I created a key file here
/home/newuser/.ssh/authorized_keys and I pasted my SSH key into that file. In addition I've browsed on my windows machine and attached the file in putty.
I'm pulling my hair out. I'm not quite sure where to look to find the problem. Is there something obvious I might be missing?
---- update ----
I logged into my root account and attempted to switch to newuser by typing
ssh email@example.com and no luck. I got this message,
Permission denied (publickey).