I wanted to create a user account on my Ubuntu VM. I wanted the user to login with a password not a key. I used the sudo adduser <username> command. It prompted me for the password and to re-type the password.
When I login with another account (which uses an ssh key), and then use su to switch user I can do it by entering the password.
But when I try to login (from my mac) I do this:
ssh <username>@<ipaddress>
and when prompted for the password I enter it, but I get the message permission denied
Any help much appreciated.