📜  致命错误:没有可用的受支持的身份验证方法(服务器发送:publickey) - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:00.548000             🧑  作者: Mango

代码示例1
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.