hexo deploy 失败

发布于 2022-09-05 22:11:51 字数 1698 浏览 23 评论 0

我的hexo部署失败,起初是因为想要上传源代码方便在公司或者别的地方写博客,但是失败了,之后我的hexo就部署失败了,然后我把什么都卸载了重新安装但是现在仍然不好使!
我的hexo配置文件为

deploy:
  type: git
  repo: git@github.com:aaa/aaa.io.git
  branch: master

ssh都有但是每次hexo d的时候就会报错

warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.pack.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in js/script.js.
The file will have its original line endings in your working directory.
On branch master
nothing to commit, working directory clean
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/
Error: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

    at ChildProcess.<anonymous> (D:\blog\node_modules\_hexo-util@0.6.1@hexo-ut
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at ChildProcess.cp.emit (D:\blog\node_modules\_cross-spawn@4.0.2@cross-spa
    at maybeClose (internal/child_process.js:877:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

一直在报 Could not read from remote repository. 网上搜了下都在说是ssh的错,
但是我执行 ssh -T git@github.com
却显示成功 Hi aaa! You've successfully authenticated, but GitHub does not provide shell access.
请求帮助,现在真的无语了

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

腻橙味 2022-09-12 22:11:51

两个问题:

  1. LF will be replaced by CRLF in index.html.
    换行符的问题,需要将windows换行符替换成Unix换行符,不过这个无关紧要
  2. Please make sure you have the correct access rights
    无权限,ssh配置有错,可以参考一下 https://help.github.com/artic...
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文