No supported authentication methods available (server sent publickey)

Solution 1: Allow password-based logons

  1. Check the value of the PasswordAuthentication parameter in the /etc/ssh/sshd_config file.

     
    sudo cat /etc/ssh/sshd_config

    The following figure shows that the PasswordAuthentication parameter is set to no, which indicates that password-based logons are denied. To allow password-based logons, set the PasswordAuthentication parameter to yes.

    image