我的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.
请求帮助,现在真的无语了
两个问题:
LF will be replaced by CRLF in index.html.
换行符的问题,需要将windows换行符替换成Unix换行符,不过这个无关紧要
Please make sure you have the correct access rights
无权限,ssh配置有错,可以参考一下 https://help.github.com/artic...