hexo的部署经常报错,我也是无语了。
·hexo d 命令,报错:
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
·此时我去ssh git@github.com,雀氏denied。
·然鹅过了一会我啥也没调(也不算,就运行了ssh-add ~/.ssh/id_rsa,不过我一开始就配置过了),再次运行ssh git@github.com还是denied,坚持不懈多尝试了几次,突然就成功了。
·再次尝试多次hexo d,依旧报一样的错,崩溃了。
突发奇想,又运行了ssh-add ~/.ssh/id_rsa,再次hexo d,竟然成功了。
到底是怎么个情况啊,我真的崩溃,每次隔一阵子就来一次这个毛病,求帮忙看看