解决hexo sftp上传提示”Error: Connection Error: All configured authentication methods failed”:

这个问题是开始使用密钥登录以后出现的。privatekey已经设置完成,使用其他ssh客户端能正常登录。

最终解决方式是:在/etc/ssh/sshd_config中末尾添加

PubkeyAcceptedAlgorithms +ssh-rsa

然后重启服务
systemctl restart sshd