SSH permission denied on correct password authentication

Solution 1:

Server's /etc/ssh/sshd_config file:

  1. To enable password authentication, uncomment

    #PasswordAuthentication yes
    
  2. To enable root login, uncomment

    #PermitRootLogin yes
    
  3. To enable SSH key login, uncomment

    #PubkeyAuthentication yes
    #AuthorizedKeysFile .ssh/authorized_keys
    

I believe (1) is what you're looking for.

Solution 2:

I figured it out. As a last ditch effort I was going to attempt to ssh into the server via the IP address instead of the domain name. When I did an ifconfig on the server to get the IP I realized it was different than it was yesterday.

Turns out I forgot to set a static IP address on the server when I created it and trying to ssh to devilsmilk was still mapped to the old IP address on the DNS server. So I set a static IP address on the server and updated the A record with the new IP address and it works fine.

Thanks everyone for your help.

Solution 3:

Try restarting the sshd service: service --full-restart sshd