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.

link|improve this question

43% accept rate
2  
What shows up in /var/log/auth.log when you try to log in. – Pratik Amin Aug 25 '11 at 4:31
2  
You're looking at this the wrong way. You need to grant the user permission to log in via SSH. – John Gardeniers Aug 25 '11 at 4:35
Thanks John ... I'll look into that – Ankur Aug 25 '11 at 4:51
feedback

closed as not a real question by womble, ErikA, Ward, Shane Madden, MDMarra Nov 15 '11 at 19:37

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ for guidance on how to improve it.

1 Answer

Modify /etc/sshd_config and change:

PasswordAuthentication no

to

PasswordAuthentication yes

and run

killall -1 sshd
link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.