Answers for "fatal error: no supported authentication methods available (server sent: publickey)"

0

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.
Posted by: Guest on March-13-2021

Code answers related to "fatal error: no supported authentication methods available (server sent: publickey)"

Browse Popular Code Answers by Language