SSH doesn't ask for password, gives "permission denied" immediately

Trying to SSH using a user account; root account works but I am specifying a private key. User account simply gives "Permission denied (publickey,gssapi-with-mic) without prompting me for my password at all.

How can I fix this so I can log in with a password, and NOT a key? I don't want to use a private key for this right now, but a regular account.


Solution 1:

The server has setting

 PasswordAuthentication no 

Change it to yes and after a restart you'll be able to use password authentication.

Solution 2:

Check your login sequence with ssh -vv. This will tell you what authentication methods are tried and which fail. You can then enable what you want and disable what you don't want. Enable first, of course.

Solution 3:

You will also need to edit /etc/ssh/sshd_config to have the setting:

ChallengeResponseAuthentication yes

as well as...

PasswordAuthentication yes

And remember to run /user/sbin/service ssh restart afterwards to pick up the new settings.

Solution 4:

its in your sshd file (not ssh, which you'll also probably find in /etc/ssh)

I believe you want to make sure PasswordAuthentication yes is set and uncommented.