no supported authentication methods available server sent publickey code example
Example: fatal error: no supported authentication methods available (server sent: publickey)
For me this error appeared immediatey after I changed the user's home directory by
sudo usermod -d var/www/html username
It can also happen because of lack of proper permission to authorized_key file in ~/.ssh. Make sure the permission of this file is 0600 and permission of ~/.ssh is 700.